btcpayserver/publish-docker.ps1
2023-02-26 00:19:59 +09:00

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