Skip to content

Commit 67e2929

Browse files
committed
fix
1 parent 2060d02 commit 67e2929

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

.github/workflows/ipfs.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,7 @@ name: Publish IPFS
33
# Controls when the action will run.
44
on:
55
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
216
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
377

388
permissions:
399
contents: read
@@ -80,9 +50,9 @@ jobs:
8050
- name: Connect to ssh in BG
8151
timeout-minutes: 2
8252
run: |
83-
echo "${{ inputs.ssh_key }}" > ../privkey
53+
echo "${{ secrets.SSHKEY }}" > ../privkey
8454
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
8656
8757
- name: IPFS upload
8858
uses: filebase/ipfs-action@master
@@ -103,7 +73,7 @@ jobs:
10373
path: ./public
10474
service: filebase
10575
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 }}
10979
key: ipfs-action

0 commit comments

Comments
 (0)