task/Publish/PublishToPSGallery.ps1
BuildTask PublishToPSGallery -Stage Publish -Order 100 -If { $null -ne $env:NuGetApiKey } -Definition { Publish-Module -Path $buildInfo.Path.Package -NuGetApiKey $env:NuGetApiKey -Repository PSGallery -ErrorAction Stop } |