mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
14 lines
270 B
PowerShell
14 lines
270 B
PowerShell
param(
|
|
[string]$suffix
|
|
)
|
|
|
|
if ($suffix)
|
|
{
|
|
$suffix = "-$suffix"
|
|
}
|
|
|
|
|
|
$ver = [regex]::Match((Get-Content Build/Version.csproj), '<Version>([^<]+)<').Groups[1].Value
|
|
git tag -a "v$ver$suffix" -m "$ver$suffix"
|
|
git checkout master
|
|
git push origin "v$ver$suffix" --force |