Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit c085108

Browse files
authored
Fix issue with nuget sign condition (#332)
* Fix issue with nuget sign condition * Use boolean parse over string comparison
1 parent 4dd9264 commit c085108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.azure-pipelines/release-cli.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ stages:
381381
Write-Verbose 'inlineNugetSignOperation = ''$(inlineNugetSignOperation)'''
382382
$rid = '$(rid)'
383383
$shouldSign = '$(sign)'
384-
if ($shouldSign.ToLower() -eq 'true' -and '$(rid)' -eq 'nuget') {
384+
if ((-not [bool]::Parse($shouldSign)) -and '$(rid)' -eq 'nuget') {
385385
$shouldSign = '$(forceNugetPublish)'
386386
}
387387
$shouldNotarize = '$(notarize)'
@@ -708,7 +708,7 @@ stages:
708708
displayName: "NuGet push"
709709
inputs:
710710
command: push
711-
packagesToPush: "$(artifactsDownloadLocation)/nuget/Microsoft.Graph.Cli.*.nupkg;$(artifactsDownloadLocation)/nuget/Microsoft.Graph.Cli.*.snupkg;"
711+
packagesToPush: "$(artifactsDownloadLocation)/nuget/Microsoft.Graph.Cli.*.nupkg;!$(artifactsDownloadLocation)/nuget/Microsoft.Graph.Cli.*.symbols.nupkg;"
712712
nuGetFeedType: external
713713
publishFeedCredentials: "microsoftgraph NuGet connection"
714714

0 commit comments

Comments
 (0)