From 572ea33edb8b48fd906225a3ab8fbf31cddb02db Mon Sep 17 00:00:00 2001 From: Matteo Cominetti Date: Thu, 30 Jul 2020 15:32:45 +0100 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4ab31bf..a630f2b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -47,6 +47,7 @@ steps: publishLocation: 'Container' - powershell: | - If ($(Build.SourceBranch).StartsWith('refs/tags/')) { nuget push -ApiKey $env:APIKEY -Source https://api.nuget.org/v3/index.json $(Build.ArtifactStagingDirectory)/**/*.nupkg } + If ($env:BRANCH.StartsWith('refs/tags/')) { nuget push -ApiKey $env:APIKEY -Source https://api.nuget.org/v3/index.json $(Build.ArtifactStagingDirectory)/**/*.nupkg } env: - APIKEY: $(nuget-apikey) \ No newline at end of file + APIKEY: $(nuget-apikey) + BRANCH: $(Build.SourceBranch) \ No newline at end of file