diff --git a/.github/workflows/tencent_cos.yml b/.github/workflows/tencent_cos.yml new file mode 100644 index 0000000..a4a31c7 --- /dev/null +++ b/.github/workflows/tencent_cos.yml @@ -0,0 +1,22 @@ +name: Upload to Tencent COS + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Install coscmd + run: sudo pip install coscmd + - name: Configure coscmd + env: + SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }} + SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }} + BUCKET: vibecoding-1302014895 + REGION: ap-beijing + run: coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION + - name: Upload + run: coscmd upload -rs --delete -f ./ / --ignore "./.*"