-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
69 lines (58 loc) · 1.82 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
69
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
solution: '**/Sprightly.sln'
msiSolution: '**/Sprightly.Setup.sln'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: 'NuGet - Install'
inputs:
versionSpec: '5.x'
- task: NuGetCommand@2
displayName: 'NuGet - Restore Packages'
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'select'
vstsFeed: 'aef36eec-c275-42e7-9d3e-42c9ed32aab8/13c93e06-eede-4f15-b1e8-c0af38a26329'
- task: VSBuild@1
displayName: 'Build - Executables'
inputs:
solution: '$(solution)'
configuration: '$(buildConfiguration)'
msbuildArchitecture: 'x64'
- task: CopyFiles@2
displayName: 'Build - Copy Executables'
inputs:
SourceFolder: '$(Build.SourcesDirectory)/Sprightly/bin/$(buildConfiguration)/net5.0-windows/'
Contents: '**/*'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@1
displayName: 'Build - Publish Executables'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifact: 'Bin'
publishLocation: 'pipeline'
- task: VSBuild@1
displayName: 'Build - MSI'
inputs:
solution: '$(msiSolution)'
platform: 'x64'
configuration: '$(buildConfiguration)'
msbuildArchitecture: 'x64'
- task: CopyFiles@2
displayName: 'Build - Copy MSI'
inputs:
SourceFolder: '$(Build.SourcesDirectory)/Sprightly.Setup/bin/$(buildConfiguration)/'
Contents: '**/*.msi'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: PublishPipelineArtifact@1
displayName: 'Build - Publish MSI'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifact: 'installer'
publishLocation: 'pipeline'