summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorloyalsoldier <[email protected]>2021-08-29 20:54:18 +0800
committerloyalsoldier <[email protected]>2021-08-29 20:54:18 +0800
commit946289eeea24697b5919df3c243b1baa62d4c5e5 (patch)
tree6ff2396b4f6cb8f41799cc2fbf76412b8d63e0de /.github/workflows
parent19497d20afdc7b64a1f4d7255fd0f4489100111e (diff)
Workflow: purge CDN after a new release
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 51df292f..d12f2c1d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -98,6 +98,13 @@ jobs:
git remote add geoip "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u geoip release
+ - name: Purge jsdelivr CDN
+ run: |
+ cd publish || exit 1
+ for file in $(ls); do
+ curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}"
+ done
+
- name: Remove some files to avoid publishing to GitHub release
run: rm -f ./publish/*.{gz,zip,txt}