File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff 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/ \
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
You can’t perform that action at this time.
0 commit comments