This is a quick example showing a PSGalleryModule deployment:

Here's the deployment config, My.PSDeploy.ps1:

Deploy Module {
    By PSGalleryModule {
        FromSource MyModuleNameHere
        To PSGallery
        WithOptions @{
            ApiKey = $ENV:NugetApiKey

In this example, we're deploying the module 'MyModuleNameHere' using an API key stored in $ENV:NugetApiKey.

The API key might be stored in a secure variable of some sort for your build system.

No output is produced from this deployment type.