Skip to content

Clear Cloudflare cache when deployed #200

Clear Cloudflare cache when deployed

Clear Cloudflare cache when deployed #200

name: Clear Cloudflare cache when deployed
on: deployment_status
jobs:
clear-cloudflare-cache:
name: "Clear Cloudflare cache"
if: ${{ github.event.deployment_status.state == 'success' }}
runs-on: ubuntu-latest
steps:
- name: "Purge cache"
uses: jakejarvis/[email protected]
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}