mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-11-13 03:45:33 +08:00
Workflow: purge CDN after a new release
This commit is contained in:
parent
012a6308ee
commit
1971d7a499
7
.github/workflows/run.yml
vendored
7
.github/workflows/run.yml
vendored
@ -210,3 +210,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 -u 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
|
||||
|
Loading…
Reference in New Issue
Block a user