deploy-docs.yml 979 B

123456789101112131415161718192021222324252627282930313233
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches-ignore:
  5. - "gh-pages"
  6. - "dependabot/**"
  7. tags: '**'
  8. repository_dispatch:
  9. types: request-build-reference # legacy
  10. #schedule:
  11. #- cron: '0 10 * * *' # Once per day at 10am UTC
  12. workflow_dispatch:
  13. permissions: read-all
  14. jobs:
  15. build:
  16. runs-on: ubuntu-latest
  17. if: github.repository_owner == 'spring-projects'
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v4
  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.GH_ACTIONS_REPO_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.GH_ACTIONS_REPO_TOKEN }}
  33. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)