Skip to content

Commit

Permalink
上传文件
Browse files Browse the repository at this point in the history
  • Loading branch information
linkxzhou committed Jul 4, 2023
1 parent d66ef8e commit 0ee8ec8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/autorelease-cos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Autorelease Cos
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@master

- name: Setup Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: install
run: |
sudo pip install coscmd
sudo yarn install
sudo yarn build
- name: configs
env:
SECRET_ID: ${{ secrets.TCLOUD_API_ID }}
SECRET_KEY: ${{ secrets.TCLOUD_API_KEY }}
BUCKET: excalidraw-cn-1251014631
REGION: ap-nanjing
run: |
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
tccli configure set secretId $SECRET_ID
tccli configure set secretKey $SECRET_KEY
tccli configure set region $REGION
- name: upload
run: |
coscmd upload -rfs --delete ./build/ /

0 comments on commit 0ee8ec8

Please sign in to comment.