From 276a27af47c61082ce28e36f403e55f5206dbfb7 Mon Sep 17 00:00:00 2001 From: He Qian Wang Date: Wed, 3 Apr 2024 15:19:47 -0400 Subject: [PATCH] [IDP-1146] Add skip-duplicate flag to nuget publish step --- Build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build.ps1 b/Build.ps1 index 5b6ab1d..15da8e4 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -35,7 +35,7 @@ Process { # Push to a NuGet feed if the environment variables are set if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) { - Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY } + Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate } } } finally {