Skip to content

Commit b23b575

Browse files
rwinchdsyer
authored andcommitted
Bust Cloudflare cache after docs deploy
After rsync, purge Cloudflare so docs.spring.io serves updated Antora reference content without stale CDN responses. Bump spring-doc-actions rsync-antora-reference to v0.0.22 to align with bust-cloudflare-antora-cache and other spring-projects doc workflows. Repository secrets (add under Settings → Secrets and variables → Actions for spring-projects/spring-grpc): - CLOUDFLARE_ZONE_ID — Cloudflare zone ID for the zone that fronts docs.spring.io (same convention as other spring-projects repos using spring-doc-actions). - CLOUDFLARE_CACHE_TOKEN — Cloudflare API token with permission to purge cache for that zone (e.g. Cache Purge). These names match spring-security's deploy-docs workflow so existing org secrets may be reused if applicable.
1 parent 92807a7 commit b23b575

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
run: |
2323
./build-docs.sh
2424
- name: Publish Docs
25-
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
25+
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.22
2626
with:
2727
docs-username: ${{ secrets.DOCS_USERNAME }}
2828
docs-host: ${{ secrets.DOCS_HOST }}
2929
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
3030
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
3131
site-path: spring-grpc-docs/target/antora/site
32+
- name: Bust Cloudflare cache
33+
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.22
34+
with:
35+
context-root: spring-grpc
36+
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
37+
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}

0 commit comments

Comments
 (0)