forked from benyblack/rest-mock-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (34 loc) · 873 Bytes
/
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
trigger:
- main
pool:
vmImage: 'ubuntu-20.04'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Install dotnet 3.1 SDK'
inputs:
version: '3.1.x'
packageType: sdk
- task: DotNetCoreCLI@2
displayName: 'Build the solution'
inputs:
command: 'build'
- task: DotNetCoreCLI@2
displayName: 'Run the tests'
inputs:
command: 'test'
- task: DotNetCoreCLI@2
displayName: 'Packing'
inputs:
command: 'pack'
versioningScheme: byEnvVar
versionEnvVar: PackageVersion
packagesToPack: '**/RestMockCore.csproj'
- task: NuGetCommand@2
displayName: 'Push to nuget.org'
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'Nuget rest-mock-core'