From 6365a6ad09cbb66f05be1221c1309ed7b828e768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Karger=20=E3=83=84=20=E2=98=80?= Date: Fri, 8 May 2020 22:11:53 +0200 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines Execute NuGet push only on master ``` condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) ``` --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8991865..fba2be7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -57,6 +57,7 @@ stages: - task: NuGetCommand@2 displayName: 'Publish to wpf-notifyicon feed' + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'