Skip to content

Commit

Permalink
Update build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
alainQtec committed Feb 17, 2024
1 parent deae07d commit 4f90165
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 @@ -253,7 +253,7 @@ Begin {
}
$Is_Lower_PsGallery_Version = [version]$current_build_version -le $Latest_Module_Verion
$should_Publish_ToPsGallery = ![string]::IsNullOrWhiteSpace($env:NUGETAPIKEY) -and !$Is_Lower_PsGallery_Version
$Is_Lower_GitHub_Version = [version]$versionToDeploy -le $latest_Github_release.ver
$Is_Lower_GitHub_Version = [version]$current_build_version -le $latest_Github_release.ver
$should_Publish_GitHubRelease = ![string]::IsNullOrWhiteSpace($env:GitHubPAT) -and ($env:CI -eq "true" -and $env:GITHUB_RUN_ID) -and !$Is_Lower_GitHub_Version
if ($should_Publish_ToPsGallery) {
$manifestPath = Join-Path $outputModVerDir "$($([Environment]::GetEnvironmentVariable($env:RUN_ID + 'ProjectName'))).psd1"
Expand Down

0 comments on commit 4f90165

Please sign in to comment.