feat: unabhaengig von GitHub - Updater und Releases ueber eigenes Gitea
Release (Edge) / release (push) Waiting to run
Release (Edge) / release (push) Waiting to run
This commit is contained in:
+15
-14
@@ -1,13 +1,14 @@
|
||||
# Veroeffentlicht eine neue Playtube-Version: setzt die Versionsnummer, committet,
|
||||
# taggt und pusht. Der eigentliche Build fuer Windows UND Linux sowie die
|
||||
# Veroeffentlichung als GitHub Release passiert danach automatisch per GitHub Actions
|
||||
# (.github/workflows/release.yml), ausgeloest durch den gepushten Tag.
|
||||
# Veroeffentlicht eine neue Playtube-Edge-Version: setzt die Versionsnummer, committet,
|
||||
# taggt ("vX.Y.Z-edge") und pusht. Build und Veroeffentlichung als Vorabversion auf dem
|
||||
# eigenen Gitea-Server passieren danach automatisch per Gitea Actions
|
||||
# (.gitea/workflows/release.yml), ausgeloest durch den gepushten Tag.
|
||||
#
|
||||
# Aufruf (im Projekt-Root):
|
||||
# powershell -ExecutionPolicy Bypass -File packaging\release.ps1 -Version 1.1.0
|
||||
# Aufruf (im Projekt-Root, auf dem Branch "edge"):
|
||||
# powershell -ExecutionPolicy Bypass -File packaging\release.ps1 -Version 1.0.1
|
||||
#
|
||||
# Voraussetzung: git remote "origin" zeigt auf https://github.com/fojadrachi/Playtube
|
||||
# und du bist dort push-berechtigt.
|
||||
# Voraussetzung: git remote "origin" zeigt auf https://git.fojadrachi.de/Fojadrachi/Playtube
|
||||
# und du bist dort push-berechtigt. Ohne Actions-Runner kannst du lokal bauen
|
||||
# (packaging\build.ps1) und mit packaging\publish_release.ps1 -Prerelease selbst veroeffentlichen.
|
||||
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
@@ -19,9 +20,9 @@ $root = Split-Path -Parent $PSScriptRoot
|
||||
Set-Location $root
|
||||
|
||||
if ($Version -notmatch '^\d+\.\d+\.\d+$') {
|
||||
throw "Version muss im Format X.Y.Z angegeben werden, z.B. 1.1.0"
|
||||
throw "Version muss im Format X.Y.Z angegeben werden, z.B. 1.0.1"
|
||||
}
|
||||
$tag = "v$Version"
|
||||
$tag = "v$Version-edge"
|
||||
|
||||
Write-Host "==> Setze Version auf $Version in playtube/__init__.py" -ForegroundColor Cyan
|
||||
$initFile = Join-Path $root "playtube\__init__.py"
|
||||
@@ -30,13 +31,13 @@ $initFile = Join-Path $root "playtube\__init__.py"
|
||||
Write-Host "==> Commit + Tag $tag ..." -ForegroundColor Cyan
|
||||
git add -A
|
||||
git commit -m "Release $tag" --allow-empty
|
||||
git tag -a $tag -m "Playtube $tag"
|
||||
git tag -a $tag -m "Playtube Edge $tag"
|
||||
|
||||
Write-Host "==> Push zu origin ..." -ForegroundColor Cyan
|
||||
git push origin HEAD
|
||||
git push origin $tag
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Fertig. GitHub Actions baut jetzt Windows- und Linux-Pakete und" -ForegroundColor Green
|
||||
Write-Host "veroeffentlicht sie als Release $tag - Fortschritt unter:" -ForegroundColor Green
|
||||
Write-Host "https://github.com/fojadrachi/Playtube/actions" -ForegroundColor Green
|
||||
Write-Host "Fertig. Gitea Actions baut jetzt Playtube Edge und" -ForegroundColor Green
|
||||
Write-Host "veroeffentlicht es als Release $tag - Fortschritt unter:" -ForegroundColor Green
|
||||
Write-Host "https://git.fojadrachi.de/Fojadrachi/Playtube/actions" -ForegroundColor Green
|
||||
|
||||
Reference in New Issue
Block a user