docs.yml 470 B

123456789101112131415161718192021222324252627
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. env:
  7. # Common versions
  8. GO_VERSION: '1.17'
  9. jobs:
  10. deploy:
  11. runs-on: ubuntu-18.04
  12. steps:
  13. - uses: actions/checkout@v3
  14. with:
  15. fetch-depth: 0
  16. - name: Setup Go
  17. uses: actions/setup-go@v3
  18. with:
  19. go-version: ${{ env.GO_VERSION }}
  20. - name: Build Docs
  21. run: make docs.publish
  22. env:
  23. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"