diff --git a/Build/upload.ps1 b/Build/upload.ps1 index a7cb1728..adb7c6d2 100644 --- a/Build/upload.ps1 +++ b/Build/upload.ps1 @@ -1,9 +1,13 @@ param([string]$apiKey) +Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "nuget.exe" + $files = Get-ChildItem -Path ".\NuGet" -Filter "*.nupkg" foreach ($file in $files) { Write-Host "Uploading: " $file .\nuget.exe push $file.Fullname $apiKey -NoSymbols -Source https://api.nuget.org/v3/index.json -} \ No newline at end of file +} + +Remove-Item "nuget.exe" -Force -Recurse -ErrorAction SilentlyContinue \ No newline at end of file