mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 19:09:08 +00:00
Use GH_ACTIONS_REPO_TOKEN
This commit is contained in:
parent
2fb8e66bc8
commit
b57caf22af
11
.github/workflows/build-reference.yml
vendored
11
.github/workflows/build-reference.yml
vendored
@ -6,8 +6,7 @@ on:
|
|||||||
- 'gh-pages'
|
- 'gh-pages'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN_DISPATCH: ${{ secrets.GH_TOKEN_DISPATCH }}
|
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
GH_TOKEN_PUSH: ${{ secrets.GH_TOKEN_PUSH }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -17,12 +16,12 @@ 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: Push generated antora files to the spring-security-docs-generated
|
- 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: "spring-security/main" # The branch the action should deploy to.
|
branch: "spring-security/main" # 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: "rwinch/spring-security-docs-generated"
|
repository-name: "spring-io/spring-generated-docs"
|
||||||
token: ${{ secrets.GH_TOKEN_PUSH }}
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
- name: Dispatch Build Request
|
- name: Dispatch Build Request
|
||||||
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"
|
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'spring-io/spring-reference' "$GH_ACTIONS_REPO_TOKEN"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user