File tree Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,37 @@ 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
6
21
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
7
37
8
38
permissions :
9
39
contents : read
50
80
- name : Connect to ssh in BG
51
81
timeout-minutes : 2
52
82
run : |
53
- echo "${{ secrets.SSHKEY }}" > ../privkey
83
+ echo "${{ inputs.ssh_key }}" > ../privkey
54
84
chmod 600 ../privkey
55
- ssh -o StrictHostKeyChecking=no ${{ secrets.SSHHOST }} -i ../privkey -L 5001:localhost:5001 -fTN
85
+ ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_host }} -i ../privkey -L 5001:localhost:5001 -fTN
56
86
57
87
- name : IPFS upload
58
88
uses : filebase/ipfs-action@master
73
103
path : ./public
74
104
service : filebase
75
105
pinName : ipfs-action
76
- filebaseBucket : ${{ secrets.FILEBASE_BUCKET }}
77
- filebaseKey : ${{ secrets.FILEBASE_KEY }}
78
- filebaseSecret : ${{ secrets.FILEBASE_SECRET }}
106
+ filebaseBucket : ${{ inputs.filebase_bucket }}
107
+ filebaseKey : ${{ inputs.filebase_key }}
108
+ filebaseSecret : ${{ inputs.filebase_secret }}
79
109
key : ipfs-action
Original file line number Diff line number Diff line change 57
57
ipfs :
58
58
name : Build and Publish IPFS
59
59
uses : ./.github/workflows/ipfs.yml
60
+ with :
61
+ ssh_host : ${{ secrets.SSHHOST }}
62
+ ssh_key : ${{ secrets.SSHKEY }}
63
+ filebase_bucket : ${{ secrets.FILEBASE_BUCKET }}
64
+ filebase_key : ${{ secrets.FILEBASE_KEY }}
65
+ filebase_secret : ${{ secrets.FILEBASE_SECRET }}
60
66
needs :
61
67
- start
62
68
You can’t perform that action at this time.
0 commit comments