From 6c5ef6db1e3904bcb60749da90f6ac542e821770 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 14 Jun 2023 13:47:56 -0500 Subject: [PATCH] Add bust-cloudflare-antora-cache This is necessary so that the css and JavaScript cache will be busted when updates are deployed --- .github/workflows/deploy-docs.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 91b1eb39fb1..41a163181d5 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -34,9 +34,15 @@ jobs: - name: Run Antora run: ./gradlew antora - name: Publish Docs - uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.5 + uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.7 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 Clouflare Cache + uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.7 + with: + context-root: spring-framework + cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} + cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}