-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.release.yml
58 lines (47 loc) · 1.37 KB
/
azure-pipelines.release.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
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
pool:
vmImage: 'vs2017-win2016'
variables:
buildConfiguration: 'Release'
trigger:
- master
pr: none
steps:
# Install the latest version of the dotnet sdk
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.101
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: VSTest@2
displayName: 'VsTest'
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\**\*.Tests.dll
!**\obj\**
codeCoverageEnabled: false
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publishing App...'
inputs:
command: publish
publishWebProjects: true
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 5.2.0
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: src/NodaTimePicker/NodaTimePicker.csproj
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)