Browse Source

add CF cache purge to deploy action

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

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

@ -85,4 +85,9 @@ jobs:
publish_dir: ./
publish_branch: live_testing
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: ''
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