Revert "Feat: deprecate jsDelivr links"

This reverts commit fa12eabc89.
This commit is contained in:
Loyalsoldier
2022-08-30 21:17:42 +08:00
parent fa12eabc89
commit 11ed3bf0c9
2 changed files with 67 additions and 29 deletions

View File

@@ -132,3 +132,10 @@ jobs:
git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f origin 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