build.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#Varibales
$ModuleSettings = @{
    RootModule = './demo-module-explore22.psm1'
    ModuleVersion = '1.0.3'
    Author = 'David Stamen'
    Description  = 'This is a demo created for VMware Explore 2022'
    FunctionsToExport = "Get-VMClusterInfo"
    IconURI = 'https://github.com/dstamen/demo-module-explore22/blob/main/logo.png'
}
$ModuleSettings

#Create Manifest
New-ModuleManifest @ModuleSettings -Path './demo-module-explore22.psd1'
Test-ModuleManifest -Path ./demo-module-explore22.psd1

#Publish Module
Publish-Module -Path . -NuGetApiKey 'oy2m4ekyyxomfflkygfqjkcfpehoevke5flmnediw3metm'