purging cloudflare cache after publishing a release

This commit is contained in:
antelle 2020-06-07 12:32:22 +02:00
parent c313de9f93
commit b91dbdaa8f
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 8 additions and 0 deletions

View File

@ -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}'