mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
@@ -1,27 +1,37 @@
|
|||||||
name: 1.0.$(rev:.r)
|
trigger:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-latest'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
buildConfiguration: 'Release'
|
buildConfiguration: 'Release'
|
||||||
|
|
||||||
trigger:
|
|
||||||
batch: true
|
|
||||||
branches:
|
|
||||||
include:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
include:
|
|
||||||
- Weather/Models
|
|
||||||
|
|
||||||
steps:
|
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:
|
inputs:
|
||||||
command: 'pack'
|
command: 'pack'
|
||||||
configuration: $(BuildConfiguration)
|
arguments: '--configuration $(buildConfiguration)'
|
||||||
packagesToPack: 'Weather/Models/Models.csproj'
|
packagesToPack: 'Weather/Models/Models.csproj'
|
||||||
versioningScheme: byBuildNumber
|
nobuild: true
|
||||||
|
versioningScheme: 'off'
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'nuget push'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'push'
|
command: 'push'
|
||||||
packagesToPush: 'Weather/Models/**/*.nupkg'
|
feedsToUse: 'select'
|
||||||
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
||||||
nuGetFeedType: 'internal'
|
nuGetFeedType: 'internal'
|
||||||
publishVstsFeed: '2eb33313-2dc4-435d-ab24-74b653cdd7bc'
|
publishVstsFeed: 'HomeMonitor'
|
||||||
|
versioningScheme: 'off'
|
||||||
|
allowPackageConflicts: true
|
||||||
Reference in New Issue
Block a user