From 18e44b8e1c81c926d8485327474364dda7fc7f8b Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sat, 20 Jul 2019 20:00:57 -0400 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- Weather/Models/azure-pipelines.yml | 40 +++++++++++++++++++----------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/Weather/Models/azure-pipelines.yml b/Weather/Models/azure-pipelines.yml index 1687d8d..eabb386 100644 --- a/Weather/Models/azure-pipelines.yml +++ b/Weather/Models/azure-pipelines.yml @@ -1,27 +1,37 @@ -name: 1.0.$(rev:.r) +trigger: +- master + +pool: + vmImage: 'windows-latest' variables: buildConfiguration: 'Release' -trigger: - batch: true - branches: - include: - - master - paths: - include: - - Weather/Models - steps: -- task: NuGetCommand@2 + +- task: DotNetCoreCLI@2 + displayName: 'dotnet build' + inputs: + command: 'build' + arguments: '--configuration $(buildConfiguration)' + projects: 'Weather/Models/Models.csproj' + +- task: DotNetCoreCLI@2 + displayName: "dotnet pack" inputs: command: 'pack' - configuration: $(BuildConfiguration) + arguments: '--configuration $(buildConfiguration)' packagesToPack: 'Weather/Models/Models.csproj' - versioningScheme: byBuildNumber + nobuild: true + versioningScheme: 'off' + - task: NuGetCommand@2 + displayName: 'nuget push' inputs: command: 'push' - packagesToPush: 'Weather/Models/**/*.nupkg' + feedsToUse: 'select' + packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' nuGetFeedType: 'internal' - publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc' + publishVstsFeed: 'HomeMonitor' + versioningScheme: 'off' + allowPackageConflicts: true \ No newline at end of file