chore: update Tencent CI workflow to use horan-geeker/cos-action@1.0.… #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |