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@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 with: egress-policy: audit - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: fetch-depth: 0 - name: Setup Go uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.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 }}"