btcpayserver/publish-docker.ps1

14 lines
270 B
PowerShell
Raw Normal View History

2023-02-25 16:19:59 +01:00
param(
[string]$suffix
)
if ($suffix)
{
$suffix = "-$suffix"
}
$ver = [regex]::Match((Get-Content Build/Version.csproj), '<Version>([^<]+)<').Groups[1].Value
2023-02-25 16:19:59 +01:00
git tag -a "v$ver$suffix" -m "$ver$suffix"
2019-03-29 09:48:24 +01:00
git checkout master
2023-02-25 16:19:59 +01:00
git push origin "v$ver$suffix" --force