Skip to content

chore: update Tencent CI workflow to use horan-geeker/cos-action@1.0.… #28

chore: update Tencent CI workflow to use horan-geeker/cos-action@1.0.…

chore: update Tencent CI workflow to use horan-geeker/cos-action@1.0.… #28

Workflow file for this run

name: Tencent CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "20.x"
- name: Build project
run: npm i -g pnpm && pnpm install && pnpm build
- name: Upload COS
uses: horan-geeker/cos-action@1.0.0
with:
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
cos_bucket: ${{ secrets.BUCKET }}
cos_region: ap-shanghai
local_path: dist
remote_path: /
clean: true