配置 对象存储 命令行工具
See action.yml
- 用例(COSCMD):
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Install COSCMD
run: |
pip install coscmd
pip install coscmd -U
- name: Setup COSCMD
uses: sushi-su/[email protected]
with:
util-type: coscmd
secret-id: ${{ secrets.SECRET_ID }}
secret-key: ${{ secrets.SECRET_KEY }}
bucketname-appid: ${{ secrets.BUCKET }}
region: ${{ secrets.REGION }}
token: ${{ secrets.TOKEN }} # 可选参数
endpoint: ${{ secrets.ENDPOINT }} # 可选参数
max-thread: ${{ secrets.MAX_THREAD }} # 可选参数
part-size: ${{ secrets.PART_SIZE }} # 可选参数
do-not-use-ssl: ${{ secrets.DO_NOT_USE_SSL }} # 可选参数
anonymous: ${{ secrets.ANONYMOUS }} # 可选参数
- name: Deploy
run: coscmd upload action.yml /
- 用例(OSSUtil):
steps:
- uses: actions/checkout@v3
- name: Setup OSSUtil
uses: sushi-su/[email protected]
with:
util-type: ossutil
endpoint: ${{ secrets.ENDPOINT }}
access-key-id: ${{ secrets.ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }}
sts-token: ${{ secrets.STS_TOKEN }} # 可选参数
version: "1.7.12" # 可选参数
- name: Deploy
run: ossutil cp -rf action.yml oss://bucket/path
The scripts and documentation in this project are released under the MIT License