更新配置
This commit is contained in:
10
.github/workflows/deploy-cdn.yml
vendored
10
.github/workflows/deploy-cdn.yml
vendored
@@ -32,11 +32,9 @@ jobs:
|
|||||||
run: npm run build:preview
|
run: npm run build:preview
|
||||||
- name: CDN login
|
- name: CDN login
|
||||||
run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
|
run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
|
||||||
- name: Set variable
|
|
||||||
run: |
|
|
||||||
REPO=${GITHUB_REPOSITORY//*\//}
|
|
||||||
- name: CDN upload
|
- name: CDN upload
|
||||||
run: |
|
run: |
|
||||||
|
REPO=${GITHUB_REPOSITORY//*\//}
|
||||||
echo $SITE > cdnrefresh.txt
|
echo $SITE > cdnrefresh.txt
|
||||||
./qshell qupload2 \
|
./qshell qupload2 \
|
||||||
--src-dir=$GITHUB_WORKSPACE$DIST_FOLDER \
|
--src-dir=$GITHUB_WORKSPACE$DIST_FOLDER \
|
||||||
@@ -47,8 +45,10 @@ jobs:
|
|||||||
--check-hash=true \
|
--check-hash=true \
|
||||||
--check-size=true \
|
--check-size=true \
|
||||||
--rescan-local=true \
|
--rescan-local=true \
|
||||||
--thread-count=32
|
--thread-count=1024
|
||||||
- name: CDN refresh
|
- name: CDN refresh
|
||||||
run: ./qshell cdnrefresh --dirs -i ./cdnrefresh.txt
|
run: ./qshell cdnrefresh --dirs -i ./cdnrefresh.txt
|
||||||
- name: Notice
|
- name: Notice
|
||||||
run: curl https://api.day.app/EweNWLE36rvVR8EFfWGq7k/$REPO/${GITHUB_WORKFLOW}%20Done
|
run: |
|
||||||
|
REPO=${GITHUB_REPOSITORY//*\//}
|
||||||
|
curl https://api.day.app/EweNWLE36rvVR8EFfWGq7k/$REPO/${GITHUB_WORKFLOW}%20Done
|
||||||
Reference in New Issue
Block a user