This repository was archived by the owner on Jul 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ LogGroup 'Publish-ToPSGallery' {
8989 $publishPSVersion = " $ ( $newVersion.Major ) .$ ( $newVersion.Minor ) .$ ( $newVersion.Patch ) "
9090 }
9191 $psGalleryReleaseLink = " https://www.powershellgallery.com/packages/$name /$publishPSVersion "
92- Write-Output " Publish module to PowerShell Gallery using [ $apiKey ] "
92+ Write-Output " Publish module to PowerShell Gallery using API key from environment. "
9393 if ($whatIf ) {
94- Write-Output " Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey $apiKey "
94+ Write-Output " Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey *** "
9595 } else {
9696 try {
9797 Publish-PSResource - Path $modulePath - Repository PSGallery - ApiKey $apiKey
You can’t perform that action at this time.
0 commit comments