docs.yml 582 B

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