Skip to content

Commit 069c77a

Browse files
authored
Docs build additional fixes (#1194)
* Permissions should be read-all * Improve performance by limitting the fetch size * Deploy the cached build
1 parent f669294 commit 069c77a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ on:
88
required: false
99
push:
1010
branches: docs-build
11-
permissions:
12-
contents: write
11+
permissions: read-all
1312
jobs:
1413
build:
1514
if: github.repository_owner == 'spring-projects'
1615
runs-on: ubuntu-latest
1716
steps:
1817
- name: Checkout
1918
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 5
2021
- name: Set up JDK 17
2122
uses: actions/setup-java@v3
2223
with:
@@ -33,6 +34,8 @@ jobs:
3334
- name: Run Antora
3435
run: |
3536
./mvnw antora
37+
- name: Copy the cache to be included in the site
38+
run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/
3639
- name: Publish Docs
3740
uses: spring-io/spring-doc-actions/[email protected]
3841
with:

0 commit comments

Comments
 (0)