build-reference.yml 926 B

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