1
1
name : ci
2
2
on :
3
3
workflow_dispatch :
4
+ inputs :
5
+ kubo-version :
6
+ description : Kubo version to use during the run
7
+ required : false
4
8
push :
5
9
branches :
6
10
- main
61
65
- uses : ipfs/download-ipfs-distribution-action@v1
62
66
with :
63
67
name : kubo
68
+ version : ${{ github.event.inputs.kubo-version }}
64
69
- uses : ipfs/download-ipfs-distribution-action@v1
65
70
with :
66
71
name : ipfs-cluster-ctl
@@ -136,13 +141,13 @@ jobs:
136
141
137
142
# dev dnslink is updated on each main branch update
138
143
- run : npx dnslink-dnsimple --domain dev.webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }}
139
- if : github.ref == 'refs/heads/main'
144
+ if : github.ref == 'refs/heads/main' && !github.event.inputs.kubo-version
140
145
env :
141
146
DNSIMPLE_TOKEN : ${{ secrets.DNSIMPLE_TOKEN }}
142
147
143
148
# production dnslink is updated on release (during tag build)
144
149
- run : npx dnslink-dnsimple --domain webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }}
145
- if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
150
+ if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version
146
151
env :
147
152
DNSIMPLE_TOKEN : ${{ secrets.DNSIMPLE_TOKEN }}
148
153
@@ -221,7 +226,7 @@ jobs:
221
226
name : ipfs-webui_${{ github.sha }}.car
222
227
223
228
- name : Dry-run semantic release
224
- if : github.ref != 'refs/heads/main'
229
+ if : github.ref != 'refs/heads/main' && !github.event.inputs.kubo-version
225
230
run : |
226
231
git config user.name "ipfs-gui-bot"
227
232
git config user.email "[email protected] "
@@ -231,7 +236,7 @@ jobs:
231
236
232
237
# Update the version (npm version [major|minor|patch])
233
238
- name : Run semantic release
234
- if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
239
+ if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version
235
240
run : |
236
241
git config user.name "ipfs-gui-bot"
237
242
git config user.email "[email protected] "
0 commit comments