File tree 2 files changed +25
-10
lines changed
2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,22 @@ jobs:
19
19
with :
20
20
node-version : ' lts/*'
21
21
22
+ - name : Read ipfs-webui CID from package.json
23
+ id : read-webui-version
24
+ run : |
25
+ echo '::echo::on'
26
+ echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
27
+ echo '::echo::off'
28
+ shell : bash
22
29
- name : Cache webui
23
- uses : actions/cache@v2
30
+ uses : actions/cache@v3
24
31
id : webui-cache
25
32
with :
26
33
path : assets/webui
27
- key : ${{ hashFiles('package.json') }} # webui CID is defined in this file
34
+ key : ${{ steps.read-webui-version.outputs.cid }}
28
35
29
36
- name : Cache bigger downloads
30
- uses : actions/cache@v2
37
+ uses : actions/cache@v3
31
38
id : cache
32
39
if : steps.webui-cache.outputs.cache-hit != 'true'
33
40
with :
@@ -75,15 +82,19 @@ jobs:
75
82
with :
76
83
node-version : ' lts/*'
77
84
85
+ - name : Read ipfs-webui CID from package.json
86
+ id : read-webui-version
87
+ run : echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
88
+ shell : bash
78
89
- name : Cache webui
79
- uses : actions/cache@v2
90
+ uses : actions/cache@v3
80
91
id : webui-cache
81
92
with :
82
93
path : assets/webui
83
- key : ${{ hashFiles('package.json') }}
94
+ key : ${{ steps.read-webui-version.outputs.cid }}
84
95
85
96
- name : Cache bigger downloads
86
- uses : actions/cache@v2
97
+ uses : actions/cache@v3
87
98
id : cache
88
99
with :
89
100
path : ${{ github.workspace }}/.cache
@@ -138,15 +149,19 @@ jobs:
138
149
with :
139
150
node-version : ' lts/*'
140
151
152
+ - name : Read ipfs-webui CID from package.json
153
+ id : read-webui-version
154
+ run : echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
155
+ shell : bash
141
156
- name : Cache webui
142
- uses : actions/cache@v2
157
+ uses : actions/cache@v3
143
158
id : webui-cache
144
159
with :
145
160
path : assets/webui
146
- key : ${{ hashFiles('package.json') }}
161
+ key : ${{ steps.read-webui-version.outputs.cid }}
147
162
148
163
- name : Cache bigger downloads
149
- uses : actions/cache@v2
164
+ uses : actions/cache@v3
150
165
id : cache
151
166
with :
152
167
path : ${{ github.workspace }}/.cache
Original file line number Diff line number Diff line change 17
17
"force-webui-download" : " shx rm -rf assets/webui && run-s build:webui" ,
18
18
"build" : " run-s clean build:webui" ,
19
19
"build:webui" : " run-s build:webui:*" ,
20
- "build:webui:download" : " npx ipfs-or-gateway -c bafybeibozpulxtpv5nhfa2ue3dcjx23ndh3gwr5vwllk7ptoyfwnfjjr4q -p assets/webui/ -t 360000 --verbose" ,
20
+ "build:webui:download" : " npx ipfs-or-gateway -c bafybeibozpulxtpv5nhfa2ue3dcjx23ndh3gwr5vwllk7ptoyfwnfjjr4q -p assets/webui/ -t 360000 --verbose -g \" https://dweb.link \" " ,
21
21
"build:webui:minimize" : " shx rm -rf assets/webui/static/js/*.map && shx rm -rf assets/webui/static/css/*.map" ,
22
22
"package" : " shx rm -rf dist/ && run-s build && electron-builder --publish onTag"
23
23
},
You can’t perform that action at this time.
0 commit comments