diff --git a/Weather/Models/azure-pipelines.yml b/Weather/Models/azure-pipelines.yml index 7198624..2e01490 100644 --- a/Weather/Models/azure-pipelines.yml +++ b/Weather/Models/azure-pipelines.yml @@ -1,7 +1,7 @@ variables: - Major: '1' - Minor: '0' - Patch: '0' + majorMinorVersion: 1.0 + semanticVersion: $[counter(variables['majorMinorVersion'], 0)] + buildConfiguration: 'Release' trigger: batch: true @@ -16,14 +16,12 @@ steps: - task: NuGetCommand@2 inputs: command: 'pack' + configuration: $(BuildConfiguration) packagesToPack: 'Weather/Models/Models.csproj' versioningScheme: byBuildNumber - majorVersion: '$(Major)' - minorVersion: '$(Minor)' - patchVersion: '$(Patch)' - task: NuGetCommand@2 inputs: command: 'push' packagesToPush: 'Weather/Models/**/*.nupkg' nuGetFeedType: 'internal' - publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc' \ No newline at end of file + publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc'