Add MyGet feed

This commit is contained in:
Harry 2019-08-09 23:04:33 +02:00
parent f1786677a0
commit 59275b1bba

View file

@ -20,22 +20,31 @@ steps:
displayName: 'CAKE Script' displayName: 'CAKE Script'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish Binaries displayName: Publish Binaries Artifact
inputs: inputs:
pathtoPublish: BuildOutput/Release pathtoPublish: BuildOutput/Release
artifactName: Binaries artifactName: Binaries
publishLocation: container publishLocation: container
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish NuGet displayName: Publish NuGet Artifact
inputs: inputs:
pathtoPublish: BuildOutput/NugetPackages pathtoPublish: BuildOutput/NugetPackages
artifactName: NuGet artifactName: NuGet
publishLocation: container publishLocation: container
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish Samples displayName: Publish Samples Artifact
inputs: inputs:
pathtoPublish: BuildOutput/Samples pathtoPublish: BuildOutput/Samples
artifactName: Samples artifactName: Samples
publishLocation: container publishLocation: container
- task: DotNetCoreCLI@2
displayName: Publish to MyGet
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/develop'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: 'push'
packagesToPush: 'BuildOutput/NugetPackages/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '5167ff63-e617-405e-a8f1-8cac89433e2d/1678f7d9-b3a8-4618-9193-93718f939e4b'