You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments