mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-12-25 16:44:14 +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 commit -m "${{ env.RELEASE_NAME }}"
|
||||||
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
|
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
|
||||||
git push -f -u origin release
|
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…
x
Reference in New Issue
Block a user