@@ -6,7 +6,13 @@ name: JetBrains Release
6
6
7
7
on :
8
8
release :
9
- types : [prereleased]
9
+ types : [ prereleased ]
10
+ workflow_dispatch :
11
+ inputs :
12
+ publish_build :
13
+ description : ` Whether or not to publish the built extension to the JetBrains marketplace`
14
+ required : true
15
+ default : false
10
16
11
17
defaults :
12
18
run :
34
40
# Prepare and publish the plugin to JetBrains Marketplace repository
35
41
build :
36
42
needs : check_release_name
37
- if : needs.check_release_name.outputs.should_run == 'true'
43
+ if : needs.check_release_name.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
38
44
name : Build Plugin
39
45
runs-on : macos-latest
40
46
permissions :
@@ -175,6 +181,7 @@ jobs:
175
181
176
182
# Publish the plugin to JetBrains Marketplace
177
183
- name : Publish EAP Plugin
184
+ if : github.event_name == 'release' || github.event.inputs.publish_build == 'true'
178
185
env :
179
186
PUBLISH_TOKEN : ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
180
187
CERTIFICATE_CHAIN : ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }}
@@ -184,6 +191,7 @@ jobs:
184
191
run : ./gradlew publishPlugin
185
192
186
193
- name : Publish Stable Plugin
194
+ if : github.event_name == 'release' || github.event.inputs.publish_build == 'true'
187
195
env :
188
196
PUBLISH_TOKEN : ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
189
197
CERTIFICATE_CHAIN : ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }}
@@ -337,7 +345,7 @@ jobs:
337
345
# Run tests and upload a code coverage report
338
346
test :
339
347
name : Test
340
- needs : [build]
348
+ needs : [ build ]
341
349
runs-on : ubuntu-latest
342
350
steps :
343
351
# Check out current repository
@@ -379,7 +387,7 @@ jobs:
379
387
inspectCode :
380
388
if : false
381
389
name : Inspect code
382
- needs : [build]
390
+ needs : [ build ]
383
391
runs-on : ubuntu-latest
384
392
permissions :
385
393
contents : write
@@ -414,7 +422,7 @@ jobs:
414
422
verify :
415
423
if : false
416
424
name : Verify plugin
417
- needs : [build]
425
+ needs : [ build ]
418
426
runs-on : ubuntu-latest
419
427
steps :
420
428
# Free GitHub Actions Environment Disk Space
0 commit comments