summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2022-08-29 17:15:58 +0800
committerLoyalsoldier <[email protected]>2022-08-29 17:15:58 +0800
commitc6d563118df2b89fcd6f000475341cada392997f (patch)
treed4de6cdc504c96ca1a148770ac239d89bd728448 /.github
parent261f08c1524fc2a9550329d231a403190b424996 (diff)
Revert "Feat: deprecate jsDelivr links"
This reverts commit ccceb7992cb02659fcf5ff737172e5b4627244e5.
Diffstat (limited to '.github')
-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 ebd5a6dd..4ca39e68 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -99,6 +99,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 -rf ./publish/*.{gz,zip} ./publish/text