File tree Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
1713jobs :
1814 build :
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
You can’t perform that action at this time.
0 commit comments