PublishToGallery.ps1
# Do not forget to increase the module version before # publishing the module. The version is set in the psd1 file. Write-Host "Publishing module to gallery . . . " $publishInfo = @{Repository="PSGallery";Path=".";NuGetApiKey="oy2nuptipwvefsdwrz7qy6j2ipbgwtierb2zxag73omcze"} Publish-Module @publishInfo Write-Host "Done " Read-Host "Press key to exit" |