Skip to content

Commit

Permalink
Add purge cache on ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ianccy committed Feb 11, 2024
1 parent 8ffc37f commit 197587a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ jobs:
run: npm run build
- name: Upload to GitHub Repository
run: npm run deploy:ci
- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
CLOUDFLARE_KEY: ${{ secrets.CLOUDFLARE_KEY }}
PURGE_URLS: '["https://js-sdk-sample.ianccy.com/index.js"]'

0 comments on commit 197587a

Please sign in to comment.