From 2ed8e5539409eb3cd928aed7289a6711c9f9f8a0 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Sun, 23 Jun 2019 21:46:06 +0200 Subject: [PATCH] Fix upload script. --- Build/upload.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Build/upload.ps1 b/Build/upload.ps1 index a7cb172..adb7c6d 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