deploy-docs.yml 968 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: read-all
  12. jobs:
  13. build:
  14. runs-on: ubuntu-latest
  15. if: github.repository_owner == 'spring-projects'
  16. env:
  17. DOCS_BUILD_BRANCH: docs-build
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v3
  21. with:
  22. ref: $DOCS_BUILD_BRANCH
  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 $DOCS_BUILD_BRANCH -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 $DOCS_BUILD_BRANCH