Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purge CDN cache on deploy #2526

Merged
merged 2 commits into from
Apr 14, 2022
Merged
Changes from 1 commit
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
Next Next commit
purge CDN cache on deploy
issues a purge all to the Fastly service that fronts peps.python.org to make new changes appear fast..... lier.
ewdurbin committed Apr 14, 2022

Verified

This commit was signed with the committer’s verified signature.
Exirel Florian Strzelecki
commit f16a4497f06264db7342e337bf817d88dc3009c7
7 changes: 7 additions & 0 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -39,3 +39,10 @@ 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 }}