spring-security/.github/workflows/build-reference.yml

31 lines
1.1 KiB
YAML
Raw Normal View History

2021-07-27 14:02:21 -04:00
name: reference
on:
push:
branches-ignore:
- 'gh-pages'
env:
2021-09-27 14:29:29 -04:00
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
2021-07-27 14:02:21 -04:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Generate antora.yml
run: ./gradlew :spring-security-docs:generateAntora
2021-10-25 15:56:53 -04:00
- name: Extract Branch Name
id: extract_branch_name
run: echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF##*/})"
2021-09-27 14:29:29 -04:00
- name: Push generated antora files to the spring-generated-docs
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
2021-10-25 15:56:53 -04:00
branch: ${{ steps.extract_branch_name.outputs.branch_name }} # The branch the action should deploy to.
folder: "docs/build/generateAntora" # The folder the action should deploy.
2021-09-27 14:29:29 -04:00
repository-name: "spring-io/spring-generated-docs"
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
2021-07-27 14:02:21 -04:00
- name: Dispatch Build Request
2021-09-27 14:29:29 -04:00
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'spring-io/spring-reference' "$GH_ACTIONS_REPO_TOKEN"