From 5f14ccf70d890dec63e01bc8cced392ecd416edd Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 12 Oct 2025 03:21:09 -0700 Subject: [PATCH] set electron-builder publish to draft, convert to prerelease after build --- .github/workflows/publish-beta.yml | 8 ++++---- electron-builder-beta.yml | 1 + electron-builder.yml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 77aef95d..5ab44470 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -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" } diff --git a/electron-builder-beta.yml b/electron-builder-beta.yml index d564e9d6..ede84732 100644 --- a/electron-builder-beta.yml +++ b/electron-builder-beta.yml @@ -55,3 +55,4 @@ publish: owner: jeffvli repo: feishin channel: beta + releaseType: draft diff --git a/electron-builder.yml b/electron-builder.yml index 4e1e41eb..b0139214 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -55,3 +55,4 @@ publish: owner: jeffvli repo: feishin channel: latest + releaseType: draft