Add workflow for publishing package to WinGet repository #185
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.
π Description
PR adds a GitHub action workflow for submitting the winget studio release to winget-pkgs repository. This workflow will need to be updated to handle separate release channels (preview, stable) in the future. Currently all releases will go under the
Microsoft.WinGetStudio.ExperimentalPackage ID.GitHub Repository Secret
To add a personal access token (PAT), one can follow the steps listed in https://github.com/microsoft/winget-create?tab=readme-ov-file#github-personal-access-token-classic-permissions. We'll need to create a repository secret with the name
WINGET_CREATE_GITHUB_TOKENπ References and Related Issues
See similar actions in the following repositories
π How to Test
Action is tricky to test without a fork, but I've tested similar actions in private forks previously. One can test the wingetcreate command by omitting the
--submitflag to see if the command will succeedβ Checklist