purging cloudflare cache after publishing a release

pull/1541/head
antelle 3 years ago
parent c313de9f93
commit b91dbdaa8f
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C

@ -534,3 +534,11 @@ jobs:
- name: Sync the website
if: ${{ github.repository == 'keeweb/keeweb' }}
run: gsutil -m rsync -r -d -x "^\." gh-pages gs://app.keeweb.info/
- name: Purge CloudFlare cache
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: |
curl -sS -X POST "https://api.cloudflare.com/client/v4/zones/dbda8e7e454d23edb08d4bc3b3f6f872/purge_cache" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'

Loading…
Cancel
Save