diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 3911f93..a5ce8c1 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -54,3 +54,10 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + - 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_PURGE_TOKEN }}" \ + -H "Content-Type: application/json" \ + --data '{"purge_everything":true}'