Conversation
Adds a publish-winget job to the release workflow, gated identically to publish-homebrew-formula, that opens a PR against microsoft/winget-pkgs for each new release. Uses vedantmgoyal9/winget-releaser (a wrapper around komac), which bases the new manifests on the previous version already in winget-pkgs. That means the zip/nested-portable layout, the oxide.exe command alias and the locale metadata all carry over without being restated here. Two bits of local knowledge are encoded: our tags carry build metadata (v0.18.0+2026073100.0.0) while the winget PackageVersion is the bare semver (0.18.0), and the installer regex has to select the Windows zip without also matching its .sha256 sidecar. Requires a WINGET_TOKEN repository secret, which does not exist yet: a classic PAT with public_repo scope (fine-grained tokens are not supported by the action) belonging to an account with write access to the oxidecomputer/winget-pkgs fork.
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.
What
Adds a publish-winget job to the release workflow, identically to publish-homebrew-formula; opening a PR against microsoft/winget-pkgs for each new release. This allows
winget install OxideComputer.OxideCLIto work for customer administrators on Windows.Uses vedantmgoyal9/winget-releaser (a wrapper around komac), which bases the new manifests on the previous version already in winget-pkgs. That means the zip/nested-portable layout, the oxide.exe command alias and the locale metadata all carry over without being restated here.
Two bits of local knowledge are encoded: our tags carry build metadata (v0.18.0+2026073100.0.0) while the winget PackageVersion is the bare semver (0.18.0), and the installer regex has to select the Windows zip without also matching its .sha256 sidecar.
Tested
Ran komac in --dry-run against the published 0.18.0 artifacts. And artifacts match what would be expected.
Next Step
Requires a WINGET_TOKEN repository secret, which does not exist yet: a classic PAT with public_repo scope (fine-grained tokens are not supported by the action) belonging to an account with write access to the oxidecomputer/winget-pkgs fork.
This has been manually done: microsoft/winget-pkgs#436034, and the next step is automating it.