-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
51 lines (44 loc) · 1.29 KB
/
azure-pipelines.yml
File metadata and controls
51 lines (44 loc) · 1.29 KB
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
# Builds the Augurk CLI
jobs:
- template: ci/build-job.yml
parameters:
vmImage: VS2017-Win2016
runtimeIdentifier: win-x64
jobName: Windows
archiveType: zip
- template: ci/build-job.yml
parameters:
vmImage: macOS-10.15
runtimeIdentifier: osx-x64
jobName: macOS
- template: ci/build-job.yml
parameters:
vmImage: ubuntu-16.04
runtimeIdentifier: linux-x64
jobName: Linux
- job: NuGetPackages
pool:
vmImage: 'VS2017-Win2016'
steps:
- script: dotnet --info
displayName: 'dotnet --info'
- task: GitVersion@5
displayName: 'Determine version'
inputs:
updateAssemblyInfo: true
- task: DotNetCoreCLI@2
displayName: 'dotnet pack'
inputs:
command: pack
projects: 'src/Augurk.CommandLine/Augurk.CommandLine.csproj'
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersionV2
configuration: Release
verbosityPack: Normal
buildProperties: 'Version=$(GitVersion.MajorMinorPatch);InformationalVersion=$(GitVersion.InformationalVersion)'
- task: PublishBuildArtifacts@1
displayName: 'Publish NuGet package'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: NuGetPackages
publishLocation: Container