-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
60 lines (51 loc) · 1.2 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
60
name: $(Date:yyyyMMdd)$(Rev:_r)
pool:
vmImage: "windows-latest"
pr:
branches:
include:
- develop
- feature/*
trigger:
branches:
include:
- main
- develop
steps:
- task: UseDotNet@2
displayName: use netcoreapp3.1 sdk
inputs:
version: "3.1.x"
performMultiLevelLookup: true
- task: UseDotNet@2
displayName: use net5.0 sdk
inputs:
version: "5.0.x"
performMultiLevelLookup: true
- task: UseDotNet@2
displayName: use net6.0 sdk
inputs:
version: "6.0.x"
- task: DotNetCoreCLI@2
displayName: restore dependencies
inputs:
command: restore
projects: src/**/src/*.csproj
- task: DotNetCoreCLI@2
displayName: build projects
inputs:
projects: src/**/src/*.csproj
arguments: --no-restore
- task: DotNetCoreCLI@2
displayName: create packages
inputs:
command: pack
packagesToPack: src/**/src/*.csproj;!src/**/test/*.Tests.csproj
nobuild: true
includesymbols: false
- task: PublishBuildArtifacts@1
displayName: publish artifact
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: bzs-sdks
condition: succeededOrFailed()