From 9452872b966da5950f890f6c1f8665a7ae9159a2 Mon Sep 17 00:00:00 2001 From: Sanjula Ganepola Date: Sun, 23 Mar 2025 18:38:21 -0400 Subject: [PATCH] Add inputs to release workflow Signed-off-by: Sanjula Ganepola --- .github/workflows/publish.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 67d0d73..98d6784 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,6 +2,17 @@ name: Publish to the Marketplace and Open VSX on: workflow_dispatch: + inputs: + publish_openvsx: + description: 'Publish to Open VSX' + type: boolean + required: true + default: true + publish_marketplace: + description: 'Publish to Marketplace' + type: boolean + required: true + default: true release: types: [created] @@ -30,7 +41,9 @@ jobs: npm install -g vsce ovsx - name: Publish to Open VSX + if: github.event_name == 'release' || inputs.publish_openvsx == true run: npx ovsx publish -p ${{ secrets.OPEN_VSX_TOKEN }} - name: Publish to Marketplace + if: github.event_name == 'release' || inputs.publish_marketplace == true run: vsce publish -p ${{ secrets.VS_MARKETPLACE_TOKEN }}