release v2

This commit is contained in:
Rimo
2024-01-26 17:04:50 +00:00
parent 60c150d787
commit 80f4dc3682
3 changed files with 22 additions and 15 deletions

View File

@@ -3,11 +3,11 @@
[![Continuous Integration](https://github.com/yizhoumo/setup-ossutil/actions/workflows/ci.yml/badge.svg)](https://github.com/yizhoumo/setup-ossutil/actions/workflows/ci.yml)
[![Functional](https://github.com/yizhoumo/setup-ossutil/actions/workflows/functional.yml/badge.svg)](https://github.com/yizhoumo/setup-ossutil/actions/workflows/functional.yml)
This action sets up [Alibaba Cloud OSSUTIL](https://github.com/aliyun/ossutil)
for use in actions by:
This action provides the following functionality for GitHub Actions users:
- downloading and caching ossutil by version and adding to PATH
- configuring ossutil with your credentials
- Downloading and caching distribution of the requested [Alibaba Cloud OSSUTIL](https://github.com/aliyun/ossutil)
version, and adding it to the PATH
- Optionally configuring ossutil with the provided credential
## Usage
@@ -15,14 +15,21 @@ See [action.yml](action.yml)
```yaml
steps:
- uses: actions/checkout@v1
- uses: yizhoumo/setup-ossutil@v1
- uses: yizhoumo/setup-ossutil@v2
with:
## The version to download and use, or 'latest' for the latest version.
ossutil-version: '1.7.18'
# The following parameters are (optionally) used to config the credential.
## The endpoint of the region in which the bucket is located.
endpoint: ${{ secrets.OSS_ENDPOINT }}
## The AccessKey ID of the credential.
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
## The AccessKey Secret of the credential.
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
sts-token: ${{ secrets.OSS_STS_TOKEN }} # Optional
ossutil-version: '1.7.14' # Optional. Use 'latest' for the latest version.
## The STS Token of the credential. Only required for temporary access.
sts-token: ${{ secrets.OSS_STS_TOKEN }}
- run: ossutil cp -f file-to-upload.txt oss://your-bucket/path
```