-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.07 KB
/
vcstore.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Visual Studio store upload
on:
release:
types: [published]
workflow_dispatch:
inputs:
publish_vsx:
description: 'Upload to the main store'
required: true
default: false
publish_open_vsx:
description: 'Upload to the open vsx store'
required: true
default: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install -g vsce
- run: npm install
- run: vsce package
- name: Publish
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_vsx }})
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX Registry
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_open_vsx }})
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}