mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-04 05:35:40 +00:00
Deploy to NuGet on successful build on master
This commit is contained in:
@@ -222,4 +222,28 @@ stages:
|
||||
set -e
|
||||
chmod +x ./test-tarball
|
||||
./test-tarball
|
||||
displayName: Execute program
|
||||
displayName: Execute program
|
||||
|
||||
- job: publish_nuget
|
||||
pool:
|
||||
vmImage: 'VS2017-Win2016'
|
||||
dependsOn:
|
||||
- test_macos
|
||||
- molecule
|
||||
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
steps:
|
||||
- task: DownloadBuildArtifacts@0
|
||||
inputs:
|
||||
artifactName: 'nuget'
|
||||
displayName: 'Download NuGet artifacts'
|
||||
|
||||
- task: NuGetToolInstaller@0
|
||||
displayName: Install NuGet
|
||||
|
||||
- task: NuGetCommand@2
|
||||
inputs:
|
||||
command: push
|
||||
packagesToPush: '$(System.ArtifactsDirectory)/nuget/*.nupkg'
|
||||
publishFeedCredentials: 'NuGet'
|
||||
nuGetFeedType: external
|
||||
Reference in New Issue
Block a user