-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
azure-pipelines-2.yml
33 lines (26 loc) · 1003 Bytes
/
azure-pipelines-2.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
pool:
vmImage: 'windows-2019'
variables:
buildConfigurationElectron: 'BlazorElectron'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Installing .NET Core SDK...'
inputs:
version: 3.1.100
- script: dotnet build --configuration $(buildConfigurationElectron) SitecoreBlazorHosted.Electron/SitecoreBlazorHosted.Electron.csproj
displayName: 'Building $(buildConfigurationElectron)...'
- task: DotNetCoreCLI@1
displayName: 'Running tests...'
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfigurationElectron)'
- task: DotNetCoreCLI@2
displayName: 'Publishing BlazorElectron App...'
inputs:
command: publish
publishWebProjects: false
arguments: '--configuration $(buildConfigurationElectron) --output $(Build.ArtifactStagingDirectory) SitecoreBlazorHosted.Electron/SitecoreBlazorHosted.Electron.csproj'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: 'Publishing Build Artifacts...'