build-reference.yml 964 B

12345678910111213141516171819202122232425262728
  1. name: reference
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'gh-pages'
  6. env:
  7. GH_TOKEN_DISPATCH: ${{ secrets.GH_TOKEN_DISPATCH }}
  8. GH_TOKEN_PUSH: ${{ secrets.GH_TOKEN_PUSH }}
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout Source
  14. uses: actions/checkout@v2
  15. - name: Generate antora.yml
  16. run: ./gradlew :spring-security-docs:generateAntora
  17. - name: Push generated antora files to the spring-security-docs-generated
  18. uses: JamesIves/github-pages-deploy-action@4.1.4
  19. with:
  20. branch: "spring-security/main" # The branch the action should deploy to.
  21. folder: "docs/build/generateAntora" # The folder the action should deploy.
  22. repository-name: "rwinch/spring-security-docs-generated"
  23. token: ${{ secrets.GH_TOKEN_PUSH }}
  24. - name: Dispatch Build Request
  25. run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"