.github/workflows/Deploy.ps1

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

Write-Host (Get-Location).Path

$nuGetApiKey = $env:PSGALLERY_TOKEN

try{
    Publish-Module -Path . -NuGetApiKey $nuGetApiKey -ErrorAction Stop -Force #-Debug
    Write-Host "ADGroupMemberObjects has been Published to the PowerShell Gallery!"
}
catch {
    throw $_
}