From 11c937343932ca25a94475e2df2328d3536880a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 22 Aug 2024 11:09:18 +0200 Subject: [PATCH] Polish --- .github/workflows/deploy-docs.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a79f4ebbcf..3bc43b70b3 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,4 +1,4 @@ -name: Deploy Docs +name: Build and Deploy Documentation run-name: ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }} on: workflow_dispatch: @@ -12,19 +12,24 @@ env: GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} permissions: read-all jobs: - build: + build-and-deploy-docs: + name: Build and Deploy Documentation if: github.repository_owner == 'spring-projects' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Check Out + uses: actions/checkout@v4 with: fetch-depth: 5 - - name: Set Up Gradle - uses: spring-io/spring-gradle-build-action@v2 + - name: Set Up Java + uses: actions/setup-java@v4 with: + distribution: 'liberica' java-version: '17' - distribution: temurin + - name: Set Up Gradle + uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0 + with: + cache-read-only: false - name: Set up refname build if: github.event.inputs.build-refname run: | @@ -42,7 +47,7 @@ jobs: docs-host: ${{ secrets.DOCS_HOST }} docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} - - name: Bust Clouflare Cache + - name: Bust Cloudflare Cache uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.16 with: context-root: spring-framework