File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,14 @@ jobs:
2323 - name : Build project
2424 run : npm i -g pnpm && pnpm install && pnpm build
2525
26- - name : Install coscmd
27- run : sudo pip install coscmd
28-
29- # 需在 GitHub Settings → Secrets 中配置 SecretId、SecretKey(名称区分大小写)
30- - name : Configure coscmd
31- env :
32- SECRET_ID : ${{ secrets.SECRET_ID }}
33- SECRET_KEY : ${{ secrets.SECRET_KEY }}
34- BUCKET : docs-1300533487
35- REGION : ap-shanghai
36- run : coscmd config -a ${{ secrets.SECRET_ID }} -s ${{ secrets.SECRET_KEY }} -b ${{ secrets.BUCKET }} -r iameng-cn-1258310295
26+ - name : Upload COS
27+ uses : zkqiang/tencent-cos-action@v0.1.0
28+ with :
29+ args : delete -r -f / && upload -r ./dist/ /
30+ secret_id : ${{ secrets.SECRET_ID }}
31+ secret_key : ${{ secrets.SECRET_KEY }}
32+ bucket : ${{ secrets.BUCKET }}
33+ region : ap-shanghai
3734
3835 - name : Upload
3936 run : coscmd upload -rfs --delete dist/ / --ignore "./.git/*"
You can’t perform that action at this time.
0 commit comments