Generate antora.yml and push to spring-security-docs-generated
This commit is contained in:
@@ -7,6 +7,7 @@ on:
|
||||
|
||||
env:
|
||||
GH_TOKEN_DISPATCH: ${{ secrets.GH_TOKEN_DISPATCH }}
|
||||
GH_TOKEN_PUSH: ${{ secrets.GH_TOKEN_PUSH }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -14,5 +15,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Source
|
||||
uses: actions/checkout@v2
|
||||
- name: Generate antora.yml
|
||||
run: ./gradlew :spring-security-docs:generateAntora
|
||||
- name: Push generated antora files to the spring-security-docs-generated
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||
with:
|
||||
branch: "spring-security/main" # The branch the action should deploy to.
|
||||
folder: "docs/build/generateAntora" # The folder the action should deploy.
|
||||
repository-name: "rwinch/spring-security-docs-generated"
|
||||
token: ${{ secrets.GH_TOKEN_PUSH }}
|
||||
- name: Dispatch Build Request
|
||||
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"
|
||||
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"
|
||||
|
||||
Reference in New Issue
Block a user