-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-v3.yml
46 lines (39 loc) · 1.15 KB
/
azure-pipelines-v3.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
variables:
major: 1
minor: 1
patch: $[counter(format('patch.{0}.{1}', variables['major'], variables['minor']),0)]
nugetVersion: $(major).$(minor).$(patch)
trigger:
- NetCorev3
pool:
vmImage: 'windows-latest'
steps:
- task: DotNetCoreCLI@2
displayName: DotNetCore build
inputs:
command: 'build'
projects: 'HelpMyStreet.Utils/**/*.csproj'
- task: DotNetCoreCLI@2
displayName: DotNetCore test
inputs:
command: 'test'
projects: 'HelpMyStreet.Utils/**/*.csproj'
- task: NuGetToolInstaller@1
displayName: NuGet install
inputs:
checkLatest: true
- task: DotNetCoreCLI@2
displayName: NuGet pack
inputs:
command: 'pack'
includesymbols: true
packagesToPack: 'HelpMyStreet.Utils/**/*.csproj;!HelpMyStreet.Utils/**/*Tests.csproj'
versioningScheme: 'byEnvVar'
versionEnvVar: 'nugetVersion'
- task: NuGetCommand@2
displayName: NuGet push
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg;!$(Build.ArtifactStagingDirectory)/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'e5c08e0c-1c28-42ca-815f-5ca90021fd46/9ff815b0-abc7-442a-98cb-d2879666c3bb'