docs.yml 733 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - feature/docs-versioning
  7. env:
  8. # Common versions
  9. GO_VERSION: '1.17'
  10. jobs:
  11. deploy:
  12. runs-on: ubuntu-18.04
  13. steps:
  14. - uses: actions/checkout@v2
  15. with:
  16. fetch-depth: 0
  17. - name: Setup Go
  18. uses: actions/setup-go@v2
  19. with:
  20. go-version: ${{ env.GO_VERSION }}
  21. - name: Build Docs
  22. run: make docs.publish
  23. env:
  24. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
  25. - name: Deploy
  26. uses: peaceiris/actions-gh-pages@v3.8.0
  27. with:
  28. github_token: ${{ secrets.GITHUB_TOKEN }}
  29. publish_dir: ./site
  30. cname: external-secrets.io
  31. keep_files: true