publish.ps1
|
[cmdletbinding()] Param( [Parameter(Mandatory)] [string] $APIkey ) [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $moduleFilter = Join-Path -Path . -ChildPath *.psd1 $modulePath = Get-ChildItem -Filter $moduleFilter | Select-Object -ExpandProperty FullName Publish-Module -NuGetApiKey $APIkey -Name $modulePath |