| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
- with:
- egress-policy: audit
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- fetch-depth: 0
- - name: Setup Go
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
- with:
- go-version-file: "go.mod"
- - name: Configure Git
- env:
- TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- git config user.name "$GITHUB_ACTOR"
- git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- git remote set-url origin "https://x-access-token:${{ env.TOKEN }}@github.com/${{ github.repository }}.git"
- - name: Build Docs
- run: make docs.publish
- env:
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|