-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
59 lines (47 loc) · 1.28 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
name: $(GITVERSION_SemVer)
trigger:
- 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
displayName: 'Create NuGet Package'
inputs:
command: 'pack'
packagesToPack: '*.csproj'
packDirectory: 'artifacts/nuget'
versioningScheme: 'byEnvVar'
versionEnvVar: 'GITVERSION_NuGetVersion'
configuration: 'release'
# - task: ArchiveFiles@2
# inputs:
# rootFolderOrFile: '$(Build.SourcesDirectory)\bin\Release\net472'
# includeRootFolder: false
# archiveType: 'zip'
# archiveFile: 'artifacts/addin/$(Build.DefinitionName)Addin-v$(Build.BuildNumber).zip'
# replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: './artifacts'
ArtifactName: 'drop'
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'