Skip to content

Commit

Permalink
Invalidate CloudFlare cache on updates
Browse files Browse the repository at this point in the history
The playbook is still served by CloudFlare so everytime something
changes we need to invalidate the nebulab.com cache.
  • Loading branch information
Matteo Latini committed Apr 29, 2021
1 parent 292379d commit 176abe3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: clear-cache

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Wait for CloudFlare pages to finish the deploy
uses: jakejarvis/[email protected]
with:
time: '6m'
- name: Purge CloudFlare Cache
uses: jakejarvis/[email protected]
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}

0 comments on commit 176abe3

Please sign in to comment.