Skip to content

Commit 11f8719

Browse files
committed
Update vuepress.yml
1 parent cec6dbd commit 11f8719

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/vuepress.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,28 @@ jobs:
4040
git commit -m 'Update'
4141
git push -f [email protected]:fluid-dev/hexo-fluid-docs.git master
4242
43+
- name: Turnstyle
44+
uses: softprops/turnstyle@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Setup qshell
49+
uses: foxundermoon/setup-qshell@v5
50+
with:
51+
version: '2.12.0'
52+
4353
- name: Upload to OSS
4454
env:
45-
OSS_AccessKeyID: ${{ secrets.OSS_AccessKeyID }}
46-
OSS_AccessKeySecret: ${{ secrets.OSS_AccessKeySecret }}
55+
QINIU_ACCESSKEY: ${{ secrets.QINIU_ACCESSKEY }}
56+
QINIU_SECRETKEY: ${{ secrets.QINIU_SECRETKEY }}
57+
QINIU_BUCKET: 'fluid-dev'
4758
run: |
4859
rm -rf ./docs/.vuepress/dist/.git
49-
wget -q http://gosspublic.alicdn.com/ossutil/1.6.10/ossutil64
50-
chmod +x ./ossutil64
51-
./ossutil64 config -e oss-ap-southeast-1.aliyuncs.com -i $OSS_AccessKeyID -k $OSS_AccessKeySecret -L CH
5260
sed -i 's/\/hexo-fluid-docs\//\/docs\//g' `grep 'hexo-fluid-docs' -rl ./docs/.vuepress/dist/*`
53-
echo y | ./ossutil64 rm oss://fluid-dev/docs/ -r
54-
./ossutil64 cp -r ./docs/.vuepress/dist oss://fluid-dev/docs
61+
qshell account $QINIU_ACCESSKEY $QINIU_SECRETKEY action
62+
qshell listbucket $QINIU_BUCKET -o bucket.txt
63+
awk -F '\t' '/docs\// {print $1}' bucket.txt > to_delete.txt
64+
qshell batchdelete -F'\t' --force $QINIU_BUCKET -i to_delete.txt
65+
qshell qupload2 --src-dir=./docs/.vuepress/dist --bucket=$QINIU_BUCKET --key-prefix=docs/ --overwrite
66+
echo 'https://fluid-dev.com/docs/\nhttps://hexo.fluid-dev.com/docs/' >> cdnrefresh.txt
67+
qshell cdnrefresh --dirs -i cdnrefresh.txt

0 commit comments

Comments
 (0)