Skip to content

Commit 30fe897

Browse files
committed
add release action and pray that it will just work
1 parent bc4af63 commit 30fe897

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release vsix to OpenVSX and VSCode marketplace
2+
on: [release]
3+
4+
jobs:
5+
release:
6+
name: "Release"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
11+
- name: Set Node.js 10.x
12+
uses: actions/setup-node@master
13+
with:
14+
version: 14.x
15+
16+
- name: npm install
17+
run: npm install
18+
19+
- name: typescript
20+
run: npx tsc
21+
22+
- name: Publish to Open VSX Registry
23+
uses: HaaLeo/publish-vscode-extension@v0
24+
id: publishToOpenVSX
25+
with:
26+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
27+
- name: Publish to Visual Studio Marketplace
28+
uses: HaaLeo/publish-vscode-extension@v0
29+
with:
30+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
31+
registryUrl: https://marketplace.visualstudio.com
32+
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
33+
packagePath: ''
34+
- name: Upload
35+
uses: djn24/add-asset-to-release@v1
36+
with:
37+
token: ${{secrets.GITHUB_TOKEN}}
38+
path: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

0 commit comments

Comments
 (0)