You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 line
417 B

  1. param([string]$apiKey)
  2. Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "nuget.exe"
  3. $files = Get-ChildItem -Path ".\NuGet" -Filter "*.nupkg"
  4. foreach ($file in $files)
  5. {
  6. Write-Host "Uploading: " $file
  7. .\nuget.exe push $file.Fullname $apiKey -NoSymbols -Source https://api.nuget.org/v3/index.json
  8. }
  9. Remove-Item "nuget.exe" -Force -Recurse -ErrorAction SilentlyContinue