Skip to content

Commit

Permalink
Merge pull request #396 from SCRT-HQ/fix/deploy-condition
Browse files Browse the repository at this point in the history
fix: Fixed deploy condition clause
  • Loading branch information
scrthq authored Feb 10, 2025
2 parents 3093f24 + fd99a9a commit b798897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ $deployScriptBlock = {
# Bump the module version
if ($versionToDeploy) {
try {
if ([String]::IsNullOrEmpty($env:NugetApiKey)) {
if (-not [String]::IsNullOrEmpty($env:NugetApiKey)) {
" Publishing version [$($versionToDeploy)] to PSGallery..."
Update-Metadata -Path (Join-Path $outputModVerDir "$($env:BHProjectName).psd1") -PropertyName ModuleVersion -Value $versionToDeploy
Publish-Module -Path $outputModVerDir -NuGetApiKey $env:NugetApiKey -Repository PSGallery
Expand Down

0 comments on commit b798897

Please sign in to comment.