Skip to content

Commit 6e65f4f

Browse files
committed
separate jobs
1 parent 7e44226 commit 6e65f4f

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/ovsxstore.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Open VSX store upload
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
publish_open_vsx:
9+
description: 'Upload to the open vsx store (even if not a tag)'
10+
required: true
11+
default: false
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18.x
26+
27+
- run: npm install -g vsce
28+
- run: npm install
29+
- run: npm run build
30+
- run: vsce package
31+
32+
- name: Publish to Open VSX Registry
33+
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_open_vsx }})
34+
uses: HaaLeo/publish-vscode-extension@v1
35+
with:
36+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
37+

.github/workflows/vcstore.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
description: 'Upload to the main store (even if not a tag)'
1010
required: true
1111
default: false
12-
publish_open_vsx:
13-
description: 'Upload to the open vsx store (even if not a tag)'
14-
required: true
15-
default: false
1612

1713
jobs:
1814
build:
@@ -33,12 +29,6 @@ jobs:
3329
- run: npm run build
3430
- run: vsce package
3531

36-
- name: Publish to Open VSX Registry
37-
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_open_vsx }})
38-
uses: HaaLeo/publish-vscode-extension@v1
39-
with:
40-
pat: ${{ secrets.OPEN_VSX_TOKEN }}
41-
4232
- name: Publish to the main store
4333
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_vsx }})
4434
run: npm run deploy

0 commit comments

Comments
 (0)