-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-publish-vscode-extension.yml
60 lines (56 loc) · 1.54 KB
/
azure-pipelines-publish-vscode-extension.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
58
59
60
# Build and publish GSharp VSCode extension
trigger: none
pr: none
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
sln: './GSharp.sln'
lspServerProject: './src/LanguageServer/LanguageServer.csproj'
lspClientDirectory: './src/LSP-client'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(sln)
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: $(sln)
arguments: '--configuration $(buildConfiguration)'
- task: NodeTool@0
displayName: 'Use Node version 10.14.1'
inputs:
versionSpec: 10.14.1
- task: DotNetCoreCLI@2
displayName: 'Publish LSP Server'
inputs:
command: publish
publishWebProjects: false
projects: $(lspServerProject)
arguments: '-c Release'
zipAfterPublish: false
modifyOutputPath: false
- task: Npm@1
displayName: 'Install Extension Dependencies'
inputs:
workingDir: $(lspClientDirectory)
verbose: false
- task: CopyFiles@2
displayName: 'Copy GSharp LSP Server files to LSP Client directory'
inputs:
SourceFolder: out/bin/Release/LanguageServer/publish
TargetFolder: 'src/LSP-client/out'
- script: 'npm install -g vsce'
displayName: 'Install VSCode Extensions Publisher'
- script: 'vsce publish -p $VSCEPAT'
workingDirectory: 'src/LSP-client'
displayName: 'VSCode Extension Publish'
env:
VSCEPAT: $(vsce-pat)