Skip to content

add content

add content #19

Workflow file for this run

name: Deply to COS
on:
push:
branches: ['darkyzhou-blog']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Build
run: pnpm install && pnpm build
- name: Upload to Accelerate COS
uses: XUEGAONET/tencent-cos-action@v0.2.0
with:
args: upload -rsf --delete ./build/ /
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.BUCKET }}
- name: Sync Deleting
uses: zkqiang/tencent-cos-action@v0.1.0
with:
args: upload -rsf --delete ./build/ /
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.BUCKET }}
region: ap-guangzhou