Skip to content

Commit

Permalink
Update NuGet push script.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewKing committed Nov 16, 2023
1 parent 0df8498 commit b9d0e33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/push-to-nuget.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
$apiKey = Read-Host -Prompt "Enter your nuget.org API key"

$root = Resolve-Path (Join-Path $PSScriptRoot "..")
$output = "$root/artifacts"
foreach ($package in Get-ChildItem -Path $output -Filter "*.nupkg") {
nuget push $package.FullName -Source https://api.nuget.org/v3/index.json
dotnet nuget push $package.FullName --source https://api.nuget.org/v3/index.json --api-key $apiKey
}

0 comments on commit b9d0e33

Please sign in to comment.