Files
setup-ossutil/README.md
Rimo 9dba6ec80f Call GitHub API to get the latest version info (#31)
* call github api to get the latest version info

* remove latest case from installer.tests

* update dist
2022-09-29 01:08:14 +08:00

32 lines
1.1 KiB
Markdown

# setup-ossutil
[![GitHub Actions status](https://github.com/yizhoumo/setup-ossutil/workflows/build-test/badge.svg)](https://github.com/yizhoumo/setup-ossutil/actions)
This action sets up [Alibaba Cloud OSSUTIL](https://github.com/aliyun/ossutil) for use in actions by:
- downloading and caching ossutil by version and adding to PATH
- configuring ossutil with your credentials
## Usage
See [action.yml](action.yml)
```yaml
steps:
- uses: actions/checkout@v1
- uses: yizhoumo/setup-ossutil@v1
with:
endpoint: ${{ secrets.OSS_ENDPOINT }}
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
sts-token: ${{ secrets.OSS_STS_TOKEN }} # Optional
ossutil-version: '1.7.14' # Optional, default to '1.7.14'. Use 'latest' to get the latest version.
- run: ossutil cp -f file-to-upload.txt oss://your-bucket/path
```
See also: [Document of ossutil](https://help.aliyun.com/document_detail/50452.html)
## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)