docs.yml 600 B

123456789101112131415161718192021222324252627282930
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - release-*
  7. jobs:
  8. deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. with:
  13. fetch-depth: 0
  14. - name: Setup Go
  15. uses: actions/setup-go@v4
  16. with:
  17. go-version-file: "go.mod"
  18. - name: Configure Git
  19. run: |
  20. git config user.name "$GITHUB_ACTOR"
  21. git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
  22. - name: Build Docs
  23. run: make docs.publish
  24. env:
  25. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"