deploy-module.ps1
$content = Get-Content .env $content | ForEach-Object { $str = $_.split("=") New-Variable -Name $str[0] -Value $str[1] -Force } if (Test-Path $localmodule) { Remove-Item $localmodule -Force } Copy-Item $PSScriptRoot 'C:\Program Files\WindowsPowerShell\Modules' -Recurse & nuget pack -basepath $localmodule -outputdirectory $localmodule | Write-Host # nuget push "$localmodule\crm-ci.1.0.0.nupkg" da39a3ee5e6b4b0d3255bfef95601890afd80709 -Source http://emscript.regent.edu:8000/api/v2/package Publish-Module -Name crm-datatools -Repository PSGallery -NuGetApiKey $nugetapikey |