set electron-builder publish to draft, convert to prerelease after build

This commit is contained in:
jeffvli 2025-10-12 03:21:09 -07:00
parent f9679f3bda
commit 5f14ccf70d
3 changed files with 6 additions and 4 deletions

View file

@ -320,10 +320,10 @@ jobs:
$releaseNotes = "## Beta Release`n`nThis is a beta release."
}
# Update the release with new title and notes
Write-Host "Updating release with title 'Beta' and new notes..."
gh release edit $tagVersion --title "Beta" --notes "$releaseNotes"
Write-Host "Successfully updated release title to 'Beta' and added commit notes"
# Update the release with new title and notes and set as prerelease
Write-Host "Updating release with title 'Beta' and new notes and set as prerelease..."
gh release edit $tagVersion --title "Beta" --notes "$releaseNotes" --prerelease
Write-Host "Successfully updated release title to 'Beta' and added commit notes and set as prerelease"
} else {
Write-Host "No release found with tag $tagVersion"
}

View file

@ -55,3 +55,4 @@ publish:
owner: jeffvli
repo: feishin
channel: beta
releaseType: draft

View file

@ -55,3 +55,4 @@ publish:
owner: jeffvli
repo: feishin
channel: latest
releaseType: draft