Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/cloudflare-purge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Purge Cloudflare Cache

on:
push:
branches:
- main # or 'master' depending on your default branch

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}'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ A static website for the Computational Multiphase Physics Laboratory, built with
4. **Deployment**
- Typically managed via GitHub Pages when merged/pushed to the main branch
- Local testing is recommended before committing changes
- Cloudflare cache is automatically purged on deployment via GitHub Actions
- Requires `CLOUDFLARE_ZONE_ID` and `CLOUDFLARE_API_TOKEN` secrets in repository settings

### Content Management

Expand Down
Loading