mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Extract Branch Name
This commit is contained in:
parent
e5747fe860
commit
cb6e64fc97
6
.github/workflows/build-reference.yml
vendored
6
.github/workflows/build-reference.yml
vendored
@ -7,7 +7,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
GENERATED_BRANCH_NAME: ${GITHUB_REPOSITORY}/${GITHUB_REF##*/}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -17,10 +16,13 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Generate antora.yml
|
- name: Generate antora.yml
|
||||||
run: ./gradlew :spring-security-docs:generateAntora
|
run: ./gradlew :spring-security-docs:generateAntora
|
||||||
|
- name: Extract Branch Name
|
||||||
|
id: extract_branch_name
|
||||||
|
run: echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF##*/})"
|
||||||
- name: Push generated antora files to the spring-generated-docs
|
- name: Push generated antora files to the spring-generated-docs
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||||
with:
|
with:
|
||||||
branch: ${{ env.GENERATED_BRANCH_NAME }} # The branch the action should deploy to.
|
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.
|
folder: "docs/build/generateAntora" # The folder the action should deploy.
|
||||||
repository-name: "spring-io/spring-generated-docs"
|
repository-name: "spring-io/spring-generated-docs"
|
||||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user