You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#If we are in Appveyor, push completed zip to Appveyor Artifact
355
355
if ($env:APPVEYOR) {
356
356
write-build Green "Task $($task.name)`: Detected Appveyor, pushing Powershell Module archive to Artifacts"
@@ -384,36 +384,6 @@ task PreDeploymentChecks {
384
384
if (-not (Get-Item$ProjectBuildPath/*.psd1 -erroraction silentlycontinue)) {throw"No Powershell Module Found in $ProjectBuildPath. Skipping deployment. Did you remember to build it first with {Invoke-Build Build}?"}
385
385
}
386
386
}
387
-
#TODO: Replace SkipPublish Logic with Proper invokebuild task skipping
388
-
task PublishPSGallery {
389
-
if (-not$SkipPublish) {
390
-
if ($AppVeyor-and-not$NuGetAPIKey) {
391
-
write-build DarkYellow "Couldn't find NuGetAPIKey in the Appveyor secure environment variables. Did you save your NuGet/Powershell Gallery API key as an Appveyor Secure Variable? https://docs.microsoft.com/en-us/powershell/gallery/psgallery/creating-and-publishing-an-item and https://www.appveyor.com/docs/build-configuration/"
392
-
$SkipPublish=$true
393
-
}
394
-
if (-not$NuGetAPIKey) {
395
-
#TODO: Add Windows Credential Store support and some kind of Linux secure storage or caching option
396
-
write-build DarkYellow '$env:NuGetAPIKey was not found as an environment variable. Please specify it or use {Invoke-Build Deploy -NuGetAPIKey "MyAPIKeyString"}. Have you registered for a Powershell Gallery API key yet? https://docs.microsoft.com/en-us/powershell/gallery/psgallery/creating-and-publishing-an-item'
#TODO: Replace SkipPublish Logic with Proper invokebuild task skipping
451
+
task PublishPSGallery {
452
+
if (-not$SkipPublish) {
453
+
if ($AppVeyor-and-not$NuGetAPIKey) {
454
+
write-build DarkYellow "Couldn't find NuGetAPIKey in the Appveyor secure environment variables. Did you save your NuGet/Powershell Gallery API key as an Appveyor Secure Variable? https://docs.microsoft.com/en-us/powershell/gallery/psgallery/creating-and-publishing-an-item and https://www.appveyor.com/docs/build-configuration/"
455
+
$SkipPublish=$true
456
+
}
457
+
if (-not$NuGetAPIKey) {
458
+
#TODO: Add Windows Credential Store support and some kind of Linux secure storage or caching option
459
+
write-build DarkYellow '$env:NuGetAPIKey was not found as an environment variable. Please specify it or use {Invoke-Build Deploy -NuGetAPIKey "MyAPIKeyString"}. Have you registered for a Powershell Gallery API key yet? https://docs.microsoft.com/en-us/powershell/gallery/psgallery/creating-and-publishing-an-item'
0 commit comments