Use Forgejo single-commit route and validate release publisher in CI
All checks were successful
Release AstroFrame / packages (push) Successful in 56s

This commit is contained in:
Elijah 2026-10-03 19:50:21 -07:00
parent 51fab803b3
commit 0a6476d428
4 changed files with 5 additions and 3 deletions

View file

@ -12,5 +12,6 @@ if (!$Ref) { throw 'Supply the source ref, for example -Ref refs/tags/v1.0.0 or
Write-Output "Validating AstroFrame $version from $Ref"
& ./Build.ps1 -Test
if ($LASTEXITCODE) { throw 'Release validation failed.' }
& ./tools/Verify-ReleaseAutomation.ps1
& ./packaging/Release.ps1 -Version $version -Platform Both -PublishRoot artifacts/server-release/publish -Output artifacts/server-release/packages
Write-Output "Windows and Linux packages ready for AstroFrame $version."

View file

@ -43,7 +43,7 @@ if ($LASTEXITCODE) { throw 'Cannot identify the release commit.' }
$status = @(& git status --porcelain)
if ($LASTEXITCODE) { throw 'Cannot check release source status.' }
if ($status.Count -gt 0) { throw 'Commit the release source and push it before publishing.' }
Invoke-RestMethod "$api/commits/$commit" -Headers $headers | Out-Null
Invoke-RestMethod "$api/git/commits/$commit" -Headers $headers | Out-Null
$tag = "v$Version"
$remoteTag = $null
try { $remoteTag = Invoke-RestMethod "$api/tags/$tag" -Headers $headers }