-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
44 lines (38 loc) · 1.08 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
pool:
vmImage: 'Ubuntu-16.04'
variables:
buildConfiguration: 'Release'
dotnetSdkVersion: '2.1.505'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core SDK $(dotnetSdkVersion)'
inputs:
version: '$(dotnetSdkVersion)'
- task: DotNetCoreCLI@2
displayName: 'Restore project dependencies'
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Build the project - $(buildConfiguration)'
inputs:
command: 'build'
arguments: '--no-restore --configuration $(buildConfiguration)'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Pack the project - $(buildConfiguration)'
inputs:
command: 'pack'
projects: '**/*.csproj'
arguments: '--no-build --configuration $(buildConfiguration)'
versioningScheme: byPrereleaseNumber
majorVersion: '1'
minorVersion: '0'
patchVersion: '0'
- task: NuGetCommand@2
displayName: 'Publish NuGet package'
inputs:
command: push
publishVstsFeed: 'Tailspin.SpaceGame.Web.Models'
allowPackageConflicts: true
condition: succeeded()