Skip to content

Commit 8877158

Browse files
author
Github Actions
committed
Fix NuGet API key reference in Invoke-ReleaseWorkflow function to use BuildConfiguration.NuGetApiKey for correct package publishing.
1 parent e91ab16 commit 8877158

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/PSBuild.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ function Invoke-ReleaseWorkflow {
17321732

17331733
# Publish packages if we have any and NuGet key is provided
17341734
$packages = @(Get-Item -Path $BuildConfiguration.PackagePattern -ErrorAction SilentlyContinue)
1735-
if ($packages.Count -gt 0 -and -not [string]::IsNullOrWhiteSpace($NuGetApiKey)) {
1735+
if ($packages.Count -gt 0 -and -not [string]::IsNullOrWhiteSpace($BuildConfiguration.NuGetApiKey)) {
17361736
Write-StepHeader "Publishing NuGet Packages"
17371737
try {
17381738
Invoke-NuGetPublish -BuildConfiguration $BuildConfiguration

0 commit comments

Comments
 (0)