Upload test #23
Workflow file for this run
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: Upload test | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Upload to COS | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: "master" | |
| - name: Install coscli | |
| run: | | |
| wget https://cosbrowser.cloud.tencent.com/software/coscli/coscli-linux-amd64 | |
| mv coscli-linux-amd64 coscli | |
| chmod 755 coscli | |
| - name: Upload test file | |
| run: | | |
| ./coscli cp README.md cos://${{ secrets.TENCENTCLOUD_BUCKET_ID }}/README.md \ | |
| --init-skip \ | |
| --recursive \ | |
| --secret-id ${{ secrets.TENCENTCLOUD_SECRET_ID }} \ | |
| --secret-key ${{ secrets.TENCENTCLOUD_SECRET_KEY }} \ | |
| --endpoint https://cos.na-ashburn.myqcloud.com |