From 0259c09fdef5bd5bd7dbb70c91093c48a3063afc Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Thu, 19 Sep 2019 07:04:45 -0700 Subject: [PATCH] Don't publish packages for PR builds. Fixes #699 --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b9dc4e495..672f1a58e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,6 +36,7 @@ jobs: arguments: '-c Release --version-suffix build-$(Build.BuildNumber) -o $(Build.ArtifactStagingDirectory)' - task: DotNetCoreCLI@2 displayName: 'Publish packages' + condition: ne(variables['Build.Reason'], 'PullRequest') inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'