mirror of
https://gitgud.io/AsmodeusRex/rjw-race-support.git
synced 2024-08-15 00:03:24 +00:00
22 lines
386 B
PowerShell
22 lines
386 B
PowerShell
|
$l = ".\LATEST_CHANGELOG"
|
||
|
$c = ".\changelog.txt"
|
||
|
$m = "Update to " + $args[0]
|
||
|
|
||
|
Write-Output ("Deploying version " + $args[0])
|
||
|
|
||
|
$a = Get-Content $l
|
||
|
$b = $a | ForEach-Object { "* " + $_ }
|
||
|
$b | Set-Content $l
|
||
|
|
||
|
Write-Output $b
|
||
|
|
||
|
$(
|
||
|
($args[0])
|
||
|
($a | ForEach-Object { "-" + $_ })
|
||
|
("")
|
||
|
(Get-Content $c -Raw)
|
||
|
) | Set-Content $c
|
||
|
|
||
|
git add $l $c
|
||
|
git commit -q --amend --no-edit
|
||
|
git tag $args[0]
|