28 lines
945 B
YAML
28 lines
945 B
YAML
name: reference
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'gh-pages'
|
|
|
|
env:
|
|
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v2
|
|
- name: Generate antora.yml
|
|
run: ./gradlew :spring-session-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-session/main" # The branch the action should deploy to.
|
|
folder: "spring-session-docs/build/generateAntora" # The folder the action should deploy.
|
|
repository-name: "spring-io/spring-generated-docs"
|
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
|
- name: Dispatch Build Request
|
|
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_ACTIONS_REPO_TOKEN"
|