Upload test #7
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: AWS CLI Config Init | |
| run: | | |
| mkdir -p ~/.aws | |
| touch ~/.aws/credentials | |
| echo "[default] | |
| aws_access_key_id=${{ secrets.TENCENTCLOUD_SECRET_ID }} | |
| aws_secret_access_key=${{ secrets.TENCENTCLOUD_SECRET_KEY }}" > ~/.aws/credentials | |
| - name: Upload test file | |
| run: | | |
| aws s3 sync README.md s3://${{ secrets.TENCENTCLOUD_BUCKET_ID }}/README.md \ | |
| --no-progress \ | |
| --follow-symlinks \ | |
| --size-only \ | |
| --delete \ | |
| --endpoint-url https://cos.na-ashburn.myqcloud.com | |
| - name: AWS CLI Config Clear | |
| run: cat /dev/null > ~/.aws/credentials |