Skip to content

Commit 1373789

Browse files
committed
Update deploy docs workflow
1 parent f09c974 commit 1373789

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ on:
88
required: false
99
push:
1010
branches: docs-build
11-
env:
12-
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
13-
permissions:
14-
contents: write
11+
permissions: read-all
1512
jobs:
1613
build:
1714
if: github.repository_owner == 'spring-projects'
@@ -20,11 +17,12 @@ jobs:
2017
- name: Checkout
2118
uses: actions/checkout@v3
2219
with:
23-
fetch-depth: 5
24-
- name: Set up JDK 17
25-
uses: actions/setup-java@v3
20+
# required for Antora to use the cloned repository to build
21+
fetch-depth: 0
22+
- name: Set up JDK 25
23+
uses: actions/setup-java@v5
2624
with:
27-
java-version: '17'
25+
java-version: '25'
2826
distribution: 'temurin'
2927
- name: Set up refname build
3028
if: github.event.inputs.build-refname
@@ -38,15 +36,15 @@ jobs:
3836
run: |
3937
./mvnw antora
4038
- name: Publish Docs
41-
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
39+
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.20
4240
with:
4341
docs-username: ${{ secrets.DOCS_USERNAME }}
4442
docs-host: ${{ secrets.DOCS_HOST }}
4543
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
4644
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
47-
site-path: target/antora/site
45+
site-path: target/site
4846
- name: Bust Cloudflare Cache
49-
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
47+
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.20
5048
with:
5149
context-root: spring-batch
5250
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}

0 commit comments

Comments
 (0)