-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
54 lines (41 loc) · 1006 Bytes
/
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
name: $(GITVERSION_SemVer)
trigger:
- release/*
- develop
- main
pool:
name: Azure Pipelines
vmImage: 'windows-latest'
steps:
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- checkout: self
fetchDepth: 0
- task: gitversion/setup@0
displayName: Setup GitVersion
inputs:
versionSpec: '5.x'
- task: gitversion/execute@0
displayName: Execute GitVersion
- task: NuGetCommand@2
displayName: 'NuGet restore'
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
clean: true
solution: '**\*.sln'
configuration: 'release'
msbuildArchitecture: 'x64'
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: 'src/**/*.csproj'
packDirectory: 'artifacts'
versioningScheme: 'byEnvVar'
versionEnvVar: 'GITVERSION_NuGetVersion'
configuration: 'release'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: './artifacts'
ArtifactName: 'drop'
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'