docs.yml 627 B

12345678910111213141516171819202122232425262728293031323334
  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@v2
  14. with:
  15. fetch-depth: 0
  16. - name: Setup Go
  17. uses: actions/setup-go@v2
  18. with:
  19. go-version: ${{ env.GO_VERSION }}
  20. - name: Build Docs
  21. run: make docs
  22. - name: Deploy
  23. uses: peaceiris/actions-gh-pages@v3.8.0
  24. with:
  25. github_token: ${{ secrets.GITHUB_TOKEN }}
  26. publish_dir: ./site
  27. cname: external-secrets.io
  28. keep_files: true