deploy-docs.yml 969 B

1234567891011121314151617181920212223242526272829303132
  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. if: github.repository_owner == 'spring-projects'
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v3
  20. with:
  21. ref: docs-build
  22. fetch-depth: 1
  23. - name: Dispatch (partial build)
  24. if: github.ref_type == 'branch'
  25. env:
  26. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  27. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
  28. - name: Dispatch (full build)
  29. if: github.ref_type == 'tag'
  30. env:
  31. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  32. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)