deploy-docs.yml 994 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Deploy Docs
  2. on:
  3. push:
  4. branches-ignore:
  5. - "gh-pages"
  6. - "dependabot/**"
  7. - "0.4.x"
  8. - "1.0.x"
  9. - "1.1.x"
  10. tags:
  11. - "**"
  12. repository_dispatch:
  13. types: request-build-reference # legacy
  14. workflow_dispatch:
  15. permissions:
  16. actions: write
  17. jobs:
  18. build:
  19. runs-on: ubuntu-latest
  20. if: github.repository_owner == 'spring-projects'
  21. steps:
  22. - name: Checkout
  23. uses: actions/checkout@v4
  24. with:
  25. ref: docs-build
  26. fetch-depth: 1
  27. - name: Dispatch (partial build)
  28. if: github.ref_type == 'branch'
  29. env:
  30. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  31. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
  32. - name: Dispatch (full build)
  33. if: github.ref_type == 'tag'
  34. env:
  35. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  36. run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)