Browse Source

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.
pull/35796/head
Brian Clozel 10 months ago
parent
commit
7232e83807
  1. 8
      .github/workflows/deploy-docs.yml

8
.github/workflows/deploy-docs.yml

@ -25,9 +25,9 @@ jobs:
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'liberica' distribution: 'liberica'
java-version: '17' java-version: '24'
- name: Set Up Gradle - name: Set Up Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0 uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
with: with:
cache-read-only: false cache-read-only: false
- name: Set up refname build - name: Set up refname build
@ -41,14 +41,14 @@ jobs:
- name: Copy the cache to be included in the site - name: Copy the cache to be included in the site
run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/ run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/
- name: Publish Docs - 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: with:
docs-username: ${{ secrets.DOCS_USERNAME }} docs-username: ${{ secrets.DOCS_USERNAME }}
docs-host: ${{ secrets.DOCS_HOST }} docs-host: ${{ secrets.DOCS_HOST }}
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
- name: Bust Cloudflare Cache - 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: with:
context-root: spring-framework context-root: spring-framework
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}

Loading…
Cancel
Save