docs.yml 764 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
  14. steps:
  15. - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
  16. with:
  17. fetch-depth: 0
  18. - name: Setup Go
  19. uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.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 }}"