Skip to content

Commit 9c4c1a5

Browse files
committed
Bust Cloudflare cache for both commercial and OSS builds
Closes gh-1018
1 parent 5853588 commit 9c4c1a5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ jobs:
6060
env:
6161
BUILD_REFNAME: ${{ github.event.inputs.build-refname }}
6262
BUILD_VERSION: ${{ github.event.inputs.build-version }}
63-
- name: Bust OSS Cloudflare Cache
64-
if: ${{ !vars.COMMERCIAL }}
65-
uses: spring-io/spring-doc-actions/[email protected]
66-
with:
67-
context-root: spring-boot
68-
context-path: /
69-
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
70-
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
7163
- name: Authenticate for commercial distribution
7264
if: ${{ vars.COMMERCIAL }}
7365
uses: 'google-github-actions/[email protected]'
@@ -80,6 +72,13 @@ jobs:
8072
path: 'build/site'
8173
destination: '${{ vars.COMMERCIAL_DOCS_HOST }}/spring-boot'
8274
parent: false
75+
- name: Bust Cloudflare Cache
76+
uses: spring-io/spring-doc-actions/[email protected]
77+
with:
78+
context-root: spring-boot
79+
context-path: /
80+
cloudflare-zone-id: ${{ (vars.COMMERCIAL && secrets.COMMERCIAL_CLOUDFLARE_ZONE_ID) || secrets.CLOUDFLARE_ZONE_ID }}
81+
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
8382
- name: Send Notification
8483
if: failure()
8584
uses: ./.github/actions/send-notification

0 commit comments

Comments
 (0)