Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
2019-07-20 19:29:59 -04:00
parent fc67895fca
commit 33ea6b05d7

View File

@@ -1,7 +1,7 @@
variables: variables:
Major: '1' majorMinorVersion: 1.0
Minor: '0' semanticVersion: $[counter(variables['majorMinorVersion'], 0)]
Patch: '0' buildConfiguration: 'Release'
trigger: trigger:
batch: true batch: true
@@ -16,14 +16,12 @@ steps:
- task: NuGetCommand@2 - task: NuGetCommand@2
inputs: inputs:
command: 'pack' command: 'pack'
configuration: $(BuildConfiguration)
packagesToPack: 'Weather/Models/Models.csproj' packagesToPack: 'Weather/Models/Models.csproj'
versioningScheme: byBuildNumber versioningScheme: byBuildNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)'
- task: NuGetCommand@2 - task: NuGetCommand@2
inputs: inputs:
command: 'push' command: 'push'
packagesToPush: 'Weather/Models/**/*.nupkg' packagesToPush: 'Weather/Models/**/*.nupkg'
nuGetFeedType: 'internal' nuGetFeedType: 'internal'
publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc' publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc'