This commit is contained in:
celetor
2022-01-07 10:18:05 +08:00
parent 91f6abfe74
commit 66eaa6195a
2 changed files with 26 additions and 22 deletions
+5 -2
View File
@@ -78,7 +78,9 @@ jobs:
files: ${{ github.workspace }}/apk/*.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Assets To "release" Branch
if: ${{ github.actor == 'gedoor' }}
run: |
cd $GITHUB_WORKSPACE/apk || exit 1
git init
@@ -87,11 +89,12 @@ jobs:
git checkout -b release
git add *.apk
git commit -m "${{ env.RELEASE_VERSION }}"
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.actor }}/release"
git push -f -u origin release
- name: Purge Jsdelivr Cache
if: ${{ github.actor == 'gedoor' }}
run: |
result=$(curl -s https://purge.jsdelivr.net/gh/${{ github.repository }}@release/)
result=$(curl -s https://purge.jsdelivr.net/gh/${{ github.actor }}/release@release/)
if echo $result |grep -q 'success.*true'; then
echo "jsdelivr缓存更新成功"
else