build.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#Varibales $ModuleSettings = @{ RootModule = './demo-module-explore22.psm1' ModuleVersion = '2.0.0' Author = 'David Stamen' Description = 'This is a demo created for VMware Explore 2022' FunctionsToExport = "Get-VMClusterInfo" IconURI = 'https://github.com/dstamen/demo-module-explore22/raw/main/logo.png' } #Create Manifest New-ModuleManifest @ModuleSettings -Path './demo-module-explore22.psd1' -PassThru #Test Manifest Test-ModuleManifest -Path ./demo-module-explore22.psd1 #Publish Module $APIKey = 'oy2mesdsnwuuc6r65rcabzm6pg4itw4uhkh5zomoiblchq' Publish-Module -Path . -NuGetApiKey $APIKey |