Automate winget submission for stable UI releases#12309
Open
niksedk wants to merge 1 commit into
Open
Conversation
Add a publish-winget job to the UI release workflow that opens a version-bump PR against microsoft/winget-pkgs for Nikse.SubtitleEdit after a stable (non-pre-release) release is published. Uses komac via winget-releaser, which downloads the installer and re-derives ProductCode/architecture from the binary - needed because the v5 Inno installer's AppID differs from the SubtitleEdit_is1 ProductCode in the pre-5.x manifests. Skipped for pre-releases, suffixed tags (v5.1.0-beta12), auto-generated pre-release-* tags, and when the WINGET_TOKEN secret is absent. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12292 (the automation part — the 5.0.0 bump itself still needs one manual/first run, see below).
What
Adds a
publish-wingetjob to the UI release workflow that automatically opens a version-bump PR against microsoft/winget-pkgs forNikse.SubtitleEditwhenever a stable release is published.How
create-release, only whencreate_releaseis true andis_prereleaseis false.v5.1.0-beta12) and auto-generatedpre-release-*tags are skipped even if the run was accidentally not marked as a pre-release; the job also skips gracefully (with a warning) if theWINGET_TOKENsecret is missing.AppID({B5E6D1E0-…}_is1), while the pre-5.x manifests saySubtitleEdit_is1and list x86+x64 — a plain manifest copy would carry the stale values forward.PackageVersionis the release tag without thevprefix (e.g.5.1.0), and onlySubtitleEdit-Windows-x64-Setup.exeis matched as the installer.Setup required (one-time, before the next stable release)
public_reposcope on theniksedkaccount (fine-grained tokens are not supported by the action).WINGET_TOKEN.fork-user: niksedk).Note on 5.0.0
This only fires on future release runs. For the already-published 5.0.0 (or once 5.1.0 goes stable, which supersedes it), a one-off submission can be done locally with:
🤖 Generated with Claude Code