Skip to content

Commit

Permalink
🚀 : Selective cache purges in Cloudflare after deploying with github …
Browse files Browse the repository at this point in the history
…actions

Fixes #51
  • Loading branch information
xuelink committed Apr 27, 2024
1 parent 5256980 commit 32f1f6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ jobs:
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: main
wranglerVersion: '3'

- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
PURGE_URLS: '["https://www.langx.io", "https://langx.io"]'

0 comments on commit 32f1f6b

Please sign in to comment.