-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
68 lines (58 loc) · 1.89 KB
/
azure-pipelines.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
61
62
63
64
65
66
67
68
trigger:
- main
name: $(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:r)
variables:
solution: "EdiEnergyViewer.sln"
buildPlatform: "Any CPU"
buildConfiguration: "Release"
jobs:
- job: Build
timeoutInMinutes: 15
pool:
vmImage: "windows-latest"
steps:
- task: UseDotNet@2
inputs:
version: 9.x
- task: NuGetToolInstaller@1
inputs:
versionSpec: "6.12.1"
- task: DotNetCoreCLI@2
displayName: "Restore nuget packages"
inputs:
command: "restore"
projects: "$(solution)"
restoreArguments: "--runtime win-x64"
- task: NodeTool@0
inputs:
versionSpec: "22.x"
displayName: "[Client] Install Node.js"
- task: PowerShell@2
displayName: "[Client] npm install"
inputs:
targetType: "inline"
script: "npm install"
workingDirectory: "edienergyviewer.client"
- task: DotNetCoreCLI@2
displayName: "[Server] Enforcing code style"
inputs:
command: "custom"
custom: "format"
projects: 'EdiEnergyViewer.Server\EdiEnergyViewer.Server.csproj'
arguments: "-v d --verify-no-changes --no-restore"
- task: DotNetCoreCLI@2
displayName: "[Server] Publish GUI into output"
inputs:
command: "publish"
publishWebProjects: false
projects: 'EdiEnergyViewer.Server\EdiEnergyViewer.Server.csproj'
arguments: "-c $(buildConfiguration) -o output --no-self-contained --runtime win-x64"
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: "$(System.DefaultWorkingDirectory)"
- task: PublishBuildArtifacts@1
displayName: "Publish output"
inputs:
PathtoPublish: "output"
ArtifactName: "drop"
publishLocation: "Container"