Skip to content

Commit fc71f5a

Browse files
committed
docs: improve docs
1 parent 1944ee6 commit fc71f5a

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,48 @@
1-
# Github Action for Uploading Files to Qiniu
1+
# Github Action for Uploading Files to Qiniu
2+
3+
This is a action for uploading files to [Qiniu](https://qiniu.com).
4+
5+
This action uses the [qiniu nodejs sdk](https://github.com/qiniu/nodejs-sdk) to upload a directory (either from your repository or generated during your workflow) to a cloud bucket.
6+
7+
8+
## Usage
9+
```yaml
10+
name: Upload Website
11+
12+
on:
13+
push:
14+
branches:
15+
- master
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@master
22+
- uses: hujiulong/qiniu-upload-action@master
23+
with:
24+
# Your qiniu access key, required.
25+
access_key: ${{ secrets.QINIU_ACCESS_KEY }}
26+
27+
# Your qiniu secret key, required.
28+
secret_key: ${{ secrets.QINIU_SECRET_KEY }}
29+
30+
# Bucket name, required.
31+
bucket: ${{ secrets.QINIU_BUCKET }}
32+
33+
# The local directory (or file) you want to upload to bucket.
34+
# Default: './'
35+
source_dir: 'dist'
36+
37+
# The directory inside of the bucket you want to upload to, namely key prefix prepended to dest file key.
38+
# Default: '/'
39+
dest_dir: '/static'
40+
41+
# Whether to ignore source maps.
42+
# Default: true
43+
ignore_source_map: true
44+
```
45+
46+
## License
47+
48+
[MIT license](LICENSE).

0 commit comments

Comments
 (0)