Skip to content

Commit af591eb

Browse files
authored
feat: support deploy to COS (#196)
1 parent 378bd62 commit af591eb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy-website.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424

2525
- name: Build website
2626
run: yarn build
27-
28-
- name: Upload files to OSS
29-
uses: fangbinwei/aliyun-oss-website-action@v1
27+
28+
- name: Upload files to COS
29+
uses: zkqiang/tencent-cos-action@v0.1.0
3030
with:
31-
accessKeyId: ${{ secrets.ALIYUN_OSS_ACCESSKEY }}
32-
accessKeySecret: ${{ secrets.ALIYUN_OSS_ACCESSKEYSECRET }}
33-
bucket: "contributor-graph"
34-
endpoint: "http://oss-accelerate.aliyuncs.com/"
35-
folder: "build"
31+
args: delete -r -f / && upload -r ./build/ /
32+
secret_id: ${{ secrets.TENCENT_COS_SECRET_ID }}
33+
secret_key: ${{ secrets.TENCENT_COS_SECRET_KEY }}
34+
bucket: ${{ secrets.TENCENT_COS_BUCKET }}
35+
region: ap-guangzhou

0 commit comments

Comments
 (0)