Skip to content

Commit 98b16b3

Browse files
committed
Add README file
1 parent 9ed3009 commit 98b16b3

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2019 Jerray
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
11
# Setup Aliyun CLI Action
2+
3+
[![GitHub Action](https://github.com/jerray/setup-aliyun-cli-action/workflows/Main/badge.svg)](https://github.com/jerray/setup-aliyun-cli-action/actions?workflow=Main)
4+
5+
This action installs and configures [Aliyun command line tool](https://github.com/aliyun/aliyun-cli) for use in your GitHub
6+
Action steps.
7+
8+
## Usage
9+
10+
```yaml
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: jerray/setup-aliyun-cli-action@v1.0.0
14+
with:
15+
aliyun-cli-version: '3.0.29'
16+
mode: AK
17+
access-key-id: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
18+
access-key-secret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
19+
region: ${{ secrets.ALIYUN_REGION }}
20+
- run: aliyun oss cp ./dir oss://backet/path -r -u
21+
```
22+
23+
Use `aliyun.exe` if job runs on Windows.
24+
25+
## License
26+
27+
MIT

action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup Aliyun CLI'
2-
description: 'Setup Aliyun commandline tool, add it to the PATH and configure authentication'
2+
description: 'Setup Aliyun command line tool, add it to the PATH and configure authentication'
33
inputs:
44
aliyun-cli-version:
55
description: 'Version of aliyun cli'
@@ -23,5 +23,3 @@ inputs:
2323
runs:
2424
using: 'node12'
2525
main: 'index.js'
26-
27-

0 commit comments

Comments
 (0)