在腾讯云 COS 中开启全球加速传输域名后,可以在 GitHub Action 中使用如下规则:
- name: Upload COS
uses: zkqiang/tencent-cos-action@v0.1.0
with:
args: config -a ${{ secrets.COS_SECRET_ID }} -s ${{ secrets.COS_SECRET_KEY }} -b ${{ secrets.COS_BUCKET }} -e cos.accelerate.myqcloud.com -m 30 && upload -r ./public/ /
secret_id: ${{ secrets.COS_SECRET_ID }}
secret_key: ${{ secrets.COS_SECRET_KEY }}
bucket: ${{ secrets.COS_BUCKET }}
region: ap-guangzhou