Publish.ps1
function PublishNVRAppDevOpsModule { UnRegister-PSRepository -Name "NVRTools" $cred = Get-Credential Register-PSRepository -Name "NVRTools" -SourceLocation "https://navertica.pkgs.visualstudio.com/_packaging/NVRTools/nuget/v2" -PublishLocation "https://navertica.pkgs.visualstudio.com/_packaging/NVRTools/nuget/v2" -Credential $cred -InstallationPolicy Trusted -Verbose nuget sources add -Name NVRTools -Source 'https://navertica.pkgs.visualstudio.com/_packaging/NVRTools/nuget/v2' -Username 'xxx@navertica.com' -Password xxx publish-module -Path .\ -Repository NVRTools -NuGetApiKey VSTS -Credential $cred publish-module -Path .\ -NuGetApiKey 'f84c2d9e-f19e-4034-b3bd-4b4232523fc9' } |