Skip to content

Commit 7ed29e1

Browse files
committed
clear cache after deploy
1 parent 49d6e9c commit 7ed29e1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
uses: actions/deploy-pages@v4
4141

4242
- name: Purge Cloudflare cache
43-
uses: nathanvaughn/actions-cloudflare-purge@v3.1.0
44-
with:
45-
cf_zone: ${{ secrets.CLOUDFLARE_ZONE_ID }}
46-
cf_auth: ${{ secrets.CLOUDFLARE_API_TOKEN }}
43+
run: |
44+
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
45+
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_TOKEN }}" \
46+
-H "Content-Type: application/json" \
47+
--data '{"purge_everything":true}'

0 commit comments

Comments
 (0)