forked from hyperledger-archives/aries-framework-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (41 loc) · 1.39 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
# Copyright Hyperledger Aries contributors. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr)
trigger:
- main
pr:
- main
jobs:
- job: buildWindows
pool:
vmImage: "windows-latest"
variables:
buildConfiguration: "Release"
steps:
- task: UseDotNet@2
displayName: 'Install sdk version'
inputs:
packageType: 'sdk'
version: '3.1.301'
- task: DotNetCoreCLI@2
inputs:
command: "restore"
projects: "**/*.sln"
feedsToUse: "config"
nugetConfigPath: "nuget.config"
- task: projectversionasvariable@1
inputs:
path: "Directory.Build.props"
- task: MSBuild@1
inputs:
solution: "src/Hyperledger.Aries.sln"
msbuildArguments: "/t:pack /p:Version=$(Version.MajorMinorPatch)-preview.$(Build.BuildId) /p:Configuration=Release /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)/pre"
- task: MSBuild@1
inputs:
solution: "src/Hyperledger.Aries.sln"
msbuildArguments: "/t:pack /p:Version=$(Version.MajorMinorPatch) /p:Configuration=Release /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)/release"
- task: PublishPipelineArtifact@0
inputs:
artifactName: "drop"
targetPath: "$(Build.ArtifactStagingDirectory)"