mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-06-17 08:33:21 +08:00
6 lines
335 B
PowerShell
6 lines
335 B
PowerShell
Remove-Item ./dist -Recurse -Force -Confirm:$false
|
|
dotnet build -c Release
|
|
$apikey = Read-Host -Prompt "nuget apikey"
|
|
foreach ($file in Get-ChildItem -Path ./dist/NSExt/bin/Release | Where-Object { $_.Name -match "nupkg" }) {
|
|
dotnet nuget push $file --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
|
} |