mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-12-29 07:34:17 +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…
x
Reference in New Issue
Block a user