Release 1.0.2 with localized sky overlay and cloud-resistant display fit
All checks were successful
Release AstroFrame / packages (push) Successful in 1m1s
All checks were successful
Release AstroFrame / packages (push) Successful in 1m1s
This commit is contained in:
parent
1e8e8c88fe
commit
6b56c0b122
16 changed files with 227 additions and 24 deletions
|
|
@ -55,7 +55,9 @@ try { $release = Invoke-RestMethod "$api/releases/tags/$tag" -Headers $headers }
|
|||
catch { if ([int]$_.Exception.Response.StatusCode -ne 404) { throw } }
|
||||
if ($release -and !$release.draft) { throw "$tag is already published. Release assets are immutable; build a new version." }
|
||||
if (!$release) {
|
||||
$body = @{ tag_name=$tag; target_commitish=$commit; name="AstroFrame $Version"; body="AstroFrame $Version for Windows and Linux. See the repository README for installation and update instructions."; draft=$true; prerelease=$false } | ConvertTo-Json
|
||||
$notesPath = Join-Path 'docs/release-notes' "$Version.md"
|
||||
$notes = if (Test-Path -LiteralPath $notesPath) { Get-Content -LiteralPath $notesPath -Raw } else { "AstroFrame $Version for Windows and Linux. See the repository README for installation and update instructions." }
|
||||
$body = @{ tag_name=$tag; target_commitish=$commit; name="AstroFrame $Version"; body=$notes; draft=$true; prerelease=$false } | ConvertTo-Json
|
||||
$release = Invoke-RestMethod "$api/releases" -Method Post -Headers $headers -ContentType 'application/json' -Body $body
|
||||
}
|
||||
$attached = @(Invoke-RestMethod "$api/releases/$($release.id)/assets" -Headers $headers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue