-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (52 loc) · 1.43 KB
/
publish.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
name: Publish
on:
# Github release triggers publish
release:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
outputs:
vsixPath: ${{ steps.buildVsx.outputs.vsixPath }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm ci
- uses: HaaLeo/publish-vscode-extension@v1
id: buildVsx
with:
pat: stub
dryRun: true
- uses: actions/upload-artifact@v2
with:
name: vsix
path: ${{ steps.buildVsx.outputs.vsixPath }}
publish-to-open-vsx:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download vsix
uses: actions/download-artifact@v2
with:
name: vsix
- uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: ${{ needs.build.outputs.vsixPath }}
publish-to-vs-marketplace:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download vsix
uses: actions/download-artifact@v2
with:
name: vsix
- uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ needs.build.outputs.vsixPath }}