diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index a2d0d5888b8..bafa531dac4 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -39,3 +39,11 @@ jobs: branch: gh-pages # The branch to deploy to. folder: build # Synchronise with build.py -> build_directory single-commit: true # Delete existing files + + - name: ♻️ Purge CDN cache + if: github.ref == 'refs/heads/main' + run: | + curl -H "Accept: application/json" -H "Fastly-Key: $FASTLY_TOKEN" -X POST "https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge_all" + env: + FASTLY_TOKEN: ${{ secrets.FASTLY_TOKEN }} + FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }}