mirror of
https://github.com/ckaczor/ChrisKaczor.Wpf.Application.SingleInstance.git
synced 2026-01-13 17:22:25 -05:00
Add AZDO pipeline
This commit is contained in:
45
azure-pipelines.yml
Normal file
45
azure-pipelines.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: 1.0.$(Rev:r)
|
||||||
|
|
||||||
|
pr: none
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
batch: 'true'
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
variables:
|
||||||
|
buildConfiguration: 'Release'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'dotnet build'
|
||||||
|
inputs:
|
||||||
|
command: 'build'
|
||||||
|
arguments: '--configuration $(buildConfiguration)'
|
||||||
|
projects: 'Wpf.Application.SingleInstance.csproj'
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: "dotnet pack"
|
||||||
|
inputs:
|
||||||
|
command: 'pack'
|
||||||
|
arguments: '--configuration $(buildConfiguration)'
|
||||||
|
packagesToPack: 'Wpf.Application.SingleInstance.csproj'
|
||||||
|
nobuild: true
|
||||||
|
versioningScheme: 'byBuildNumber'
|
||||||
|
|
||||||
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'nuget push'
|
||||||
|
inputs:
|
||||||
|
command: 'push'
|
||||||
|
feedsToUse: 'select'
|
||||||
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
||||||
|
nuGetFeedType: external
|
||||||
|
publishFeedCredentials: 'NuGet'
|
||||||
|
publishVstsFeed: 'Packages'
|
||||||
|
versioningScheme: 'byBuildNumber'
|
||||||
|
allowPackageConflicts: true
|
||||||
Reference in New Issue
Block a user