File tree Expand file tree Collapse file tree 1 file changed +5
-35
lines changed Expand file tree Collapse file tree 1 file changed +5
-35
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,7 @@ name: Publish IPFS
3
3
# Controls when the action will run.
4
4
on :
5
5
workflow_dispatch :
6
- ssh_host :
7
- required : true
8
- type : string
9
- ssh_key :
10
- required : true
11
- type : string
12
- filebase_bucket :
13
- required : true
14
- type : string
15
- filebase_key :
16
- required : true
17
- type : string
18
- filebase_secret :
19
- required : true
20
- type : string
21
6
workflow_call :
22
- ssh_host :
23
- required : true
24
- type : string
25
- ssh_key :
26
- required : true
27
- type : string
28
- filebase_bucket :
29
- required : true
30
- type : string
31
- filebase_key :
32
- required : true
33
- type : string
34
- filebase_secret :
35
- required : true
36
- type : string
37
7
38
8
permissions :
39
9
contents : read
80
50
- name : Connect to ssh in BG
81
51
timeout-minutes : 2
82
52
run : |
83
- echo "${{ inputs.ssh_key }}" > ../privkey
53
+ echo "${{ secrets.SSHKEY }}" > ../privkey
84
54
chmod 600 ../privkey
85
- ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_host }} -i ../privkey -L 5001:localhost:5001 -fTN
55
+ ssh -o StrictHostKeyChecking=no ${{ secrets.SSHHOST }} -i ../privkey -L 5001:localhost:5001 -fTN
86
56
87
57
- name : IPFS upload
88
58
uses : filebase/ipfs-action@master
103
73
path : ./public
104
74
service : filebase
105
75
pinName : ipfs-action
106
- filebaseBucket : ${{ inputs.filebase_bucket }}
107
- filebaseKey : ${{ inputs.filebase_key }}
108
- filebaseSecret : ${{ inputs.filebase_secret }}
76
+ filebaseBucket : ${{ secrets.FILEBASE_BUCKET }}
77
+ filebaseKey : ${{ secrets.FILEBASE_KEY }}
78
+ filebaseSecret : ${{ secrets.FILEBASE_SECRET }}
109
79
key : ipfs-action
You can’t perform that action at this time.
0 commit comments