-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
47 lines (39 loc) · 1.18 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
trigger:
tags:
include:
- v*
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'release'
steps:
- task: DotNetCoreInstaller@1
displayName: 'install dotnet sdk'
inputs:
version: '7.x'
- script: dotnet restore
displayName: 'dotnet restore'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- script: dotnet build --configuration $(buildConfiguration) --no-restore
displayName: 'dotnet build'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- script: dotnet test --configuration $(buildConfiguration) --no-restore --no-build
displayName: 'dotnet test'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- script: dotnet pack --output $(build.artifactStagingDirectory) --configuration $(buildConfiguration) --no-restore --no-build
displayName: 'dotnet pack nugets'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- task: PublishBuildArtifacts@1
displayName: 'publish artifacts'
inputs:
pathtoPublish: '$(build.artifactStagingDirectory)'
artifactName: '$(build.definitionName)'
publishLocation: 'Container'