publish.ps1

Import-Module DotupPsEssentials

Clear-Host

$path = Get-Location;
$moduleName = Split-Path (Split-Path $path -Parent) -Leaf
$functions = Get-PsModuleFunctions $path -PublicOnly
Update-ModuleManifest -Path "$((Join-Path $path $moduleName)).psd1" -FunctionsToExport $functions;

$PowershellApiKey = "oy2brhym6syjwgjiwnoqhnh56zx52pju7b27ravqwewwwy";

Publish-Module -Path $path -NugetAPIKey $PowershellApiKey;