|
|
@ -116,7 +116,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Git push assets to "release" branch
|
|
|
|
- name: Git push assets to "release" branch
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd publish
|
|
|
|
cd publish || exit 1
|
|
|
|
git init
|
|
|
|
git init
|
|
|
|
git config --local user.name "github-actions[bot]"
|
|
|
|
git config --local user.name "github-actions[bot]"
|
|
|
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
@ -125,3 +125,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 origin release
|
|
|
|
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
|
|
|
|