From 7232e838075beb31bc0726acea2edaca411c93d1 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 12 Jun 2025 09:22:16 +0200 Subject: [PATCH] Fix failing build for docs As of https://github.com/spring-projects/spring-framework/issues/35007, the auto-provisioning is disabled for Java runtimes in Gradle. This makes the build fail because Java 24 is required for building the docs whereas this action is setting up Java 17. This commit also upgrades other GitHub actions. --- .github/workflows/deploy-docs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 3bc43b70b3a..56bb46dd754 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -25,9 +25,9 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'liberica' - java-version: '17' + java-version: '24' - name: Set Up Gradle - uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0 + uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1 with: cache-read-only: false - name: Set up refname build @@ -41,14 +41,14 @@ jobs: - 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.16 + uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.20 with: docs-username: ${{ secrets.DOCS_USERNAME }} docs-host: ${{ secrets.DOCS_HOST }} docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} - name: Bust Cloudflare Cache - uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.16 + uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.20 with: context-root: spring-framework cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}