From 326ee51a5608ff5fe32e253e57959d0141888901 Mon Sep 17 00:00:00 2001 From: Rob Winch <362503+rwinch@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:42:13 -0500 Subject: [PATCH 1/3] Permissions should be read-all --- .github/workflows/deploy-docs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index beabeda6c..8d0ab970a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -8,8 +8,7 @@ on: required: false push: branches: docs-build -permissions: - contents: write +permissions: read-all jobs: build: if: github.repository_owner == 'spring-projects' From 621166a808ae8531ebfb7f3d1366f8ed721fe442 Mon Sep 17 00:00:00 2001 From: Rob Winch <362503+rwinch@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:42:28 -0500 Subject: [PATCH 2/3] Improve performance by limitting the fetch size --- .github/workflows/deploy-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 8d0ab970a..402573bea 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 5 - name: Set up JDK 17 uses: actions/setup-java@v3 with: From dd027e71ab36ef0993551c2e1020b483b776e466 Mon Sep 17 00:00:00 2001 From: Rob Winch <362503+rwinch@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:43:31 -0500 Subject: [PATCH 3/3] Deploy the cached build --- .github/workflows/deploy-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 402573bea..7cb606f21 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -34,6 +34,8 @@ jobs: - name: Run Antora run: | ./mvnw antora + - name: Copy the cache to be included in the site + run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/ - name: Publish Docs uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.20 with: