forked from TencentCloud/cos-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
36 lines (36 loc) · 1.12 KB
/
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
name: 'New Tencent Cloud COS Action'
description: 'Upload files to Tencent Cloud COS'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
secret_id:
description: 'Tencent cloud secret id. Should be referred to a encrypted environment variable'
required: true
secret_key:
description: 'Tencent cloud secret key. Should be referred to a encrypted environment variable'
required: true
cos_bucket:
description: 'COS bucket name'
required: true
cos_region:
description: 'COS bucket region'
required: true
local_path:
description: 'Local path to be uploaded to COS. Directory or file is allowed'
required: true
remote_path:
description: 'COS path to put the local files in on COS'
required: true
clean:
description: 'Set to true for cleaning files on COS path which are not existed in local path. Default is false'
required: false
accelerate:
description: 'Set to true for using accelerate domain to upload files. Default is false'
required: false
cos_storage_class:
description: 'COS storage class'
required: false
runs:
using: 'node12'
main: 'index.js'