Browse Source

add CF cache purge to deploy action

pull/404/head
GilbN 2 years ago
parent
commit
cd9ba32366
  1. 5
      .github/workflows/minify-and-deploy.yml

5
.github/workflows/minify-and-deploy.yml

@ -86,3 +86,8 @@ jobs:
publish_branch: live_testing
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: ''
- name: Clear CF Cache
run: |
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_CACHE_PURGE }}" \
-H "Content-Type:application/json"
Loading…
Cancel
Save