Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Nov 25, 2020
1 parent c0041af commit 0848298
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions publish/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ else {
$isPreRelease = $version -match '-'

if (-not $isPreRelease -or $Force) {
if ($null -eq $NugetApiKey) {
throw "NugetApiKey is needed."
if ([string]::IsNullOrWhiteSpace($NugetApiKey)) {
throw "This is stable release NugetApiKey is needed."
}

if ($null -eq $ChocolateyApiKey) {
throw "ChocolateyApiKey is needed."
if ([string]::IsNullOrWhiteSpace($ChocolateyApiKey)) {
throw "This is stable release ChocolateyApiKey is needed."
}
}

Expand Down

0 comments on commit 0848298

Please sign in to comment.