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

@ -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 }