Skip to content

Commit 38338b5

Browse files
committed
ci: 💚 use foxundermoon/setup-qshell@v1
1 parent 8fd1d8c commit 38338b5

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ jobs:
2626
done
2727
- name: Build
2828
run: yarn build:preview --report
29-
- name: CDN download qshell
30-
run: |
31-
wget http://devtools.qiniu.com/qshell-linux-x86-v2.4.0.zip
32-
unzip qshell-linux-x86-v2.4.0.zip
33-
mv qshell-linux-x86-v2.4.0 qshell
34-
- name: CDN login
35-
run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
29+
- name: Setup qshell
30+
uses: foxundermoon/setup-qshell@v1
31+
env:
32+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
33+
with:
34+
qshell-version: '2.4.0'
35+
- name: Test qshell
36+
run: qshell version
37+
- name: Login
38+
run: qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
3639
- name: CDN upload
3740
run: |
38-
./qshell qupload2 \
41+
qshell qupload2 \
3942
--src-dir=$GITHUB_WORKSPACE/dist \
4043
--bucket=d2-cdn \
4144
--key-prefix=${GITHUB_REPOSITORY//*\//}/preview/ \
@@ -48,7 +51,7 @@ jobs:
4851
- name: CDN refresh
4952
run: |
5053
echo "https://cdn.d2.pub/${GITHUB_REPOSITORY//*\//}/preview/" > cdnrefresh.txt
51-
./qshell cdnrefresh --dirs -i ./cdnrefresh.txt
54+
qshell cdnrefresh --dirs -i ./cdnrefresh.txt
5255
5356
ftp:
5457
name: FTP

0 commit comments

Comments
 (0)