| 12345678910111213141516171819202122232425262728293031323334353637 |
- name: Deploy Docs
- on:
- push:
- branches:
- - main
- permissions:
- contents: read
- jobs:
- deploy:
- runs-on: ubuntu-latest
- permissions:
- contents: write #needed to publish documentation
- steps:
- - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
- with:
- egress-policy: audit
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
- - name: Setup Go
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- with:
- go-version-file: "go.mod"
- - name: Configure Git
- run: |
- git config user.name "$GITHUB_ACTOR"
- git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- - name: Build Docs
- run: make docs.publish
- env:
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|