generated from zhangwj0520/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
40 lines (38 loc) · 966 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'Qiniu Kodo Upload Files'
description: 'github action for uploading files to qiniu'
author: 'zhangwweijie'
# 在此添加您的操作品牌。这将出现在 GitHub Marketplace 上。
# https://docs.github.com/zh/actions/creating-actions/metadata-syntax-for-github-actions
branding:
icon: 'play'
color: 'blue'
# 定义相关变量
inputs:
access_key:
description: 'access key'
required: true
secret_key:
description: 'secret key'
required: true
bucket:
description: 'bucket'
required: true
is_cover:
description: '是否覆盖上传'
default: false
required: false
source_dir:
description: '上传的文件路径'
default: './dist'
required: false
dest_dir:
description: 'dest dir, namely key prefix'
default: '/'
required: false
ignore_source_map:
description: 'ignore source maps'
default: true
required: false
runs:
using: 'node20'
main: 'dist/index.js'