forked from blackspherefollower/NogasmChart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
58 lines (55 loc) · 1.61 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
trigger:
branches:
include:
- master
- dev
pr:
branches:
include:
- master
- dev
variables:
solution: 'NogasmChart.sln'
buildPlatform: 'Any CPU'
jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
# Debug:
# buildConfiguration: Debug
Release:
buildConfiguration: Release
steps:
- template: build/build-start.yml
parameters:
platform: "win-x64"
# Set up key after build start, otherwise we won't have nuget to update yet.
- task: VSBuild@1
displayName: "Build Project"
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
maximumCpuCount: true
- task: PowerShell@2
displayName: "Build Installer"
inputs:
targetType: inline
script: |
$Env:CONFIGURATION = "$(buildConfiguration)"
$Env:BUILD_VERSION = "$(gitVersion)"
cinst -y --no-progress innosetup
ISCC nogasm-chart-installer.iss
move installer\nogasm-chart-installer.exe installer\$(cliBuildName)-installer.exe
- task: CopyFiles@2
displayName: "Copy installer to staging"
inputs:
contents: "$(System.DefaultWorkingDirectory)/installer/*.exe"
targetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- task: PublishPipelineArtifact@0
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'win-x64-$(buildConfiguration)'