deploy-docs.yml 1021 B

123456789101112131415161718192021222324252627282930313233
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches-ignore: [ gh-pages ]
  5. tags: '**'
  6. repository_dispatch:
  7. types: request-build-reference # legacy
  8. #schedule:
  9. #- cron: '0 10 * * *' # Once per day at 10am UTC
  10. workflow_dispatch:
  11. permissions:
  12. actions: write
  13. jobs:
  14. build:
  15. runs-on: ubuntu-latest
  16. # FIXME enable when pushed to spring-projects
  17. # if: github.repository_owner == 'spring-projects'
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v3
  21. with:
  22. ref: docs-build
  23. fetch-depth: 1
  24. - name: Dispatch (partial build)
  25. if: github.ref_type == 'branch'
  26. env:
  27. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  28. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
  29. - name: Dispatch (full build)
  30. if: github.ref_type == 'tag'
  31. env:
  32. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  33. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)