Skip to content

Commit 32f1f6b

Browse files
committed
🚀 : Selective cache purges in Cloudflare after deploying with github actions
Fixes #51
1 parent 5256980 commit 32f1f6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ jobs:
5757
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
5858
branch: main
5959
wranglerVersion: '3'
60+
61+
- name: Purge cache
62+
uses: jakejarvis/cloudflare-purge-action@master
63+
env:
64+
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
65+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
66+
PURGE_URLS: '["https://www.langx.io", "https://langx.io"]'

0 commit comments

Comments
 (0)