docs.yml 797 B

1234567891011121314151617181920212223242526272829303132333435
  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: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  16. with:
  17. fetch-depth: 0
  18. - name: Setup Go
  19. uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
  20. with:
  21. go-version-file: "go.mod"
  22. - name: Configure Git
  23. run: |
  24. git config user.name "$GITHUB_ACTOR"
  25. git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
  26. - name: Build Docs
  27. run: make docs.publish
  28. env:
  29. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"