| 1234567891011121314151617181920212223242526272829303132333435363738 |
- name: Deploy Docs
- on:
- push:
- branches:
- - main
- - release-*
- permissions:
- contents: read
- jobs:
- deploy:
- runs-on: ubuntu-latest
- permissions:
- contents: write #needed to publish documentation
- steps:
- - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
- with:
- egress-policy: audit
- - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
- - name: Setup Go
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.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 }}"
|