forked from aquiladev/ipfs-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
83 lines (83 loc) · 2.34 KB
/
action.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: 'Upload to IPFS'
description: 'The GitHub Action allows uploading DApps or content to IPFS. It supports IPFS, Pinata, Infura pinning services.'
branding:
icon: 'upload-cloud'
color: 'green'
inputs:
path:
description: 'Directory path to upload'
required: true
pin:
description: 'Pin object when adding'
required: false
default: true
pinName:
description: 'Human name for pin'
required: false
service:
description: 'Type of target service to upload. Supported services [ipfs, pinata, infura, filebase]'
required: false
default: 'ipfs'
timeout:
description: 'Request timeout'
required: false
default: 60000
verbose:
description: 'Level of verbosity'
required: false
default: false
host:
description: '[ipfs] IPFS host'
required: false
default: 'ipfs.io'
port:
description: '[ipfs] IPFS port'
required: false
default: 5001
protocol:
description: '[ipfs] IPFS protocol'
required: false
default: 'https'
headers:
description: '[ipfs] IPFS headers as json object'
required: false
default: "{}"
key:
description: "[ipfs] IPNS key name. IPNS key will be published when the key parameter is provided. The key will be created if it does not exist"
required: false
pinataKey:
description: '[pinata] API Key. Required for pinata service'
required: false
pinataSecret:
description: '[pinata] Secret Key. Required for pinata service'
required: false
pinataPinName:
description: '[pinata] Human name for pin'
required: false
deprecationMessage: 'Obsolete input, use `pinName` instead'
filebaseBucket:
description: '[filebase] Bucket Name. Required for Filebase service'
required: false
filebaseKey:
description: '[filebase] Api Key. Required for Filebase service'
required: false
filebaseSecret:
description: '[filebase] Secret Api Key. Required for Filebase service'
infuraProjectId:
description: '[infura] Project ID. Required for infura service'
required: false
infuraProjectSecret:
description: '[infura] Project Secret. Required for infura service'
required: false
outputs:
hash:
description: 'IPFS CID'
cid:
description: 'IPFS CID'
ipfs:
description: 'IPFS CID'
ipns:
description: 'IPNS CID if applicable'
runs:
using: 'node20'
main: 'dist/index.js'