docs.yml 935 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - release-*
  7. permissions:
  8. contents: read
  9. jobs:
  10. deploy:
  11. runs-on: ubuntu-latest
  12. permissions:
  13. contents: write #needed to publish documentation
  14. steps:
  15. - uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
  16. with:
  17. egress-policy: audit
  18. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  19. with:
  20. fetch-depth: 0
  21. - name: Setup Go
  22. uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
  23. with:
  24. go-version-file: "go.mod"
  25. - name: Configure Git
  26. run: |
  27. git config user.name "$GITHUB_ACTOR"
  28. git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
  29. - name: Build Docs
  30. run: make docs.publish
  31. env:
  32. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"