mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Moved scripts
This commit is contained in:
32
Scripts/Release.ps1
Normal file
32
Scripts/Release.ps1
Normal file
@@ -0,0 +1,32 @@
|
||||
# Script for doing a Release of Terminal.Gui
|
||||
# For now just does Alpha
|
||||
param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[int]$Version
|
||||
)
|
||||
|
||||
$branch = "v2_release"
|
||||
$tag = "$Version-prealpha"
|
||||
$releaseMessage = "Release $tag"
|
||||
|
||||
try {
|
||||
Write-Host "Switching to branch $branch"
|
||||
git checkout $branch
|
||||
|
||||
Write-Host "Pulling latest from upstream branch $branch"
|
||||
git pull upstream $branch
|
||||
|
||||
Write-Host "Tagging release with tag $tag"
|
||||
git tag $tag -a -m $releaseMessage
|
||||
|
||||
Write-Host "Creating empty commit with message $releaseMessage"
|
||||
git commit --allow-empty -m $releaseMessage
|
||||
|
||||
Write-Host "Pushing changes to upstream"
|
||||
git push --atomic upstream $branch $tag
|
||||
} catch {
|
||||
Write-Host "An error occurred: $_"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "Script executed successfully"
|
||||
Reference in New Issue
Block a user