deploy-cdn

This commit is contained in:
FairyEver 2019-12-14 14:45:09 +08:00
parent 7855d27715
commit 9ed08f7bc1
1 changed files with 6 additions and 3 deletions

View File

@ -35,8 +35,9 @@ jobs:
- name: CDN upload - name: CDN upload
run: | run: |
REPO=${GITHUB_REPOSITORY//*\//} REPO=${GITHUB_REPOSITORY//*\//}
REFRESH_URL=$SITE - name: CDN upload
echo $REFRESH_URL > cdnrefresh.txt run: |
echo $SITE > cdnrefresh.txt
./qshell qupload2\ ./qshell qupload2\
--src-dir=$GITHUB_WORKSPACE$DIST_FOLDER\ --src-dir=$GITHUB_WORKSPACE$DIST_FOLDER\
--bucket=$QINIU_BUCKET\ --bucket=$QINIU_BUCKET\
@ -48,4 +49,6 @@ jobs:
--rescan-local=true \ --rescan-local=true \
--thread-count=32 --thread-count=32
- name: CDN refresh - name: CDN refresh
run: ./qshell cdnrefresh --dirs -i ./cdnrefresh.txt run: ./qshell cdnrefresh --dirs -i ./cdnrefresh.txt
- name: Notice
run: curl https://api.day.app/EweNWLE36rvVR8EFfWGq7k/$REPO/${GITHUB_WORKFLOW}%20Done