Skip to content

Commit

Permalink
Update Build.ps1
Browse files Browse the repository at this point in the history
Co-authored-by: Gérald Barré <[email protected]>
  • Loading branch information
PrincessMadMath and meziantou authored Dec 17, 2024
1 parent d8bb08c commit 152fcd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Process {
Exec { & dotnet test -c Release --no-build --results-directory "$outputDir" --no-restore -l "trx" -l "console;verbosity=detailed" }
Exec { & dotnet pack -c Release --no-build -o "$outputDir" }

if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY) -and ($IsLinux)) {
if (($null -ne $env:NUGET_SOURCE) -and ($null -ne $env:NUGET_API_KEY) -and ($IsLinux)) {
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate }
}
}
Expand Down

0 comments on commit 152fcd7

Please sign in to comment.