Skip to content

Commit 4b35108

Browse files
committed
chore: update Tencent CI workflow to use horan-geeker/cos-action for uploading to COS with improved configuration options
1 parent 1426768 commit 4b35108

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tencent.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,13 @@ jobs:
3232
bucket: ${{ secrets.BUCKET }}
3333
region: ap-shanghai
3434

35-
- name: Upload
36-
run: coscmd upload -rfs --delete dist/ / --ignore "./.git/*"
35+
- name: Upload to COS
36+
uses: horan-geeker/cos-action@1.0.0
37+
with:
38+
secret_id: ${{ secrets.SECRET_ID }}
39+
secret_key: ${{ secrets.SECRET_KEY }}
40+
cos_bucket: ${{ secrets.BUCKET }}
41+
cos_region: ap-shanghai
42+
local_path: ./dist
43+
remote_path: /static/
44+
clean: true

0 commit comments

Comments
 (0)