btcpayserver/BTCPayServer.Client/PushNuget.ps1

8 lines
435 B
PowerShell
Raw Normal View History

2020-09-01 04:48:52 +02:00
rm "bin\release\" -Recurse -Force
dotnet pack --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg
$package=(ls .\bin\Release\*.nupkg).FullName
dotnet nuget push $package --source "https://api.nuget.org/v3/index.json"
$ver = ((ls .\bin\release\*.nupkg)[0].Name -replace '.*(\d+\.\d+\.\d+)\.nupkg','$1')
git tag -a "BTCPayServer.Client/v$ver" -m "BTCPayServer.Client/$ver"
2020-09-01 04:51:11 +02:00
git push origin "BTCPayServer.Client/v$ver"