diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 4d19657..d04b282 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -55,6 +55,13 @@ extends: condition: always() targetPath: '$(ArtifactsDirectoryName)' artifactName: $(ArtifactsDirectoryName) + - output: nuget + displayName: 'Push NuGet Packages to nuget.org' + condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/Microsoft.Build')) + packageParentPath: '$(ArtifactsDirectoryName)' + packagesToPush: '$(ArtifactsDirectoryName)/**/$(Build.SourceBranchName).nupkg' + nuGetFeedType: 'external' + publishFeedCredentials: 'MSBuild SDKs' steps: - task: PowerShell@2 displayName: 'Update Build Number, and Add Build Tag for tagged commits'