mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Improve publish docker script
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
param(
|
||||
[string]$suffix
|
||||
)
|
||||
|
||||
if ($suffix)
|
||||
{
|
||||
$suffix = "-$suffix"
|
||||
}
|
||||
|
||||
|
||||
$ver = [regex]::Match((Get-Content Build/Version.csproj), '<Version>([^<]+)<').Groups[1].Value
|
||||
git tag -a "v$ver" -m "$ver"
|
||||
git tag -a "v$ver$suffix" -m "$ver$suffix"
|
||||
git checkout master
|
||||
git push origin "v$ver" --force
|
||||
git push origin "v$ver$suffix" --force
|
||||
Reference in New Issue
Block a user