-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (32 loc) · 977 Bytes
/
vscode.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
name: Publish TopModel.VSCode
on:
push:
paths:
- TopModel.VSCode/package.json
jobs:
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- run: dotnet publish -f net8.0
name: Build LS
working-directory: TopModel.LanguageServer
- run: dotnet publish -f net6.0
name: Build LS
working-directory: TopModel.LanguageServer
- run: npm ci
working-directory: TopModel.VSCode
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{secrets.VS_MARKETPLACE_API_KEY}}
registryUrl: https://marketplace.visualstudio.com
packagePath: TopModel.VSCode