Skip to content

Reapply "Make a site dir" #19

Reapply "Make a site dir"

Reapply "Make a site dir" #19

name: Purge Cloudflare Cache
on:
push:
branches:
- main
jobs:
purge_cache:
runs-on: ubuntu-latest
steps:
- name: Purge Cloudflare cache
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'
env:
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}