Skip to content

Commit a84fa9b

Browse files
ewelsbentsherman
andauthored
Add checkboxes for publish targets to publish action (#107)
--------- Signed-off-by: Ben Sherman <[email protected]> Co-authored-by: Ben Sherman <[email protected]>
1 parent 48c1d9c commit a84fa9b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Publish Extension
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
vscode_marketplace:
6+
description: 'Publish to Visual Studio Marketplace'
7+
type: boolean
8+
default: true
9+
open_vsx:
10+
description: 'Publish to Open VSX Registry'
11+
type: boolean
12+
default: true
413

514
jobs:
615
deploy:
@@ -22,13 +31,15 @@ jobs:
2231
run: npm run package
2332

2433
- name: Publish to Visual Studio Marketplace
34+
if: ${{ github.event.inputs.vscode_marketplace == true }}
2535
uses: HaaLeo/publish-vscode-extension@v1
2636
with:
2737
pat: ${{ secrets.VSCE_TOKEN }}
2838
registryUrl: https://marketplace.visualstudio.com
2939
extensionFile: build/nextflow.vsix
3040

3141
- name: Publish to Open VSX Registry
42+
if: ${{ github.event.inputs.open_vsx == true }}
3243
uses: HaaLeo/publish-vscode-extension@v1
3344
with:
3445
pat: ${{ secrets.OPEN_VSX_TOKEN }}

0 commit comments

Comments
 (0)