-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically submit winget packages when we release a new version #14795
Comments
FWIW I haven't done this yet because we do post-release-build vetting and release on a schedule, rather than "every time the release pipeline builds." That is: We build the final releases on Thursdays or Fridays (as if 🤣) and then publish them the following Tuesday. WinGet requires a durable public asset URL, which for us would be GitHub. We may prefer to automate this off the tail end of a GitHub Action that fires when a release is published... |
You know, that's right, the script above might actually just work based off a GH action on publishing the release. It's been so long since I opened that tab, I had forgotten. I'll clarify. |
This can be done via Winget Releaser. I have opened up a PR: |
[The winget-releaser action] automatically generates manifests for the [Winget Community Repository] and submits them. I suggest adding Dependabot to keep the action up to date. There were many cases where the action was failing due to an outdated version. Closes #14795 [The winget-releaser action]: https://github.com/vedantmgoyal2009/winget-releaser [Winget Community Repository]: https://github.com/microsoft/winget-pkgs
[The winget-releaser action] automatically generates manifests for the [Winget Community Repository] and submits them. I suggest adding Dependabot to keep the action up to date. There were many cases where the action was failing due to an outdated version. Closes #14795 [The winget-releaser action]: https://github.com/vedantmgoyal2009/winget-releaser [Winget Community Repository]: https://github.com/microsoft/winget-pkgs (cherry picked from commit bee22f3) winget: use the correct fork-user (cherry picked from commit e1079d8) winget.yml: switch to manually using wingetcreate (#15023) It was brought to my attention that we should be more restrictive in which tasks we ovver a GitHub token to. Sorry! With thanks to sitiom for the version parsing and the magic GitHub action syntax incantation for determining what is a prerelease. (cherry picked from commit 5a34d92)
We don't currently. We should.
PowerToys has this handy script for automating their release to winget. We could probably copypasta with minimal changes.
https://github.com/microsoft/PowerToys/blob/main/.github/workflows/package-submissions.yml
The text was updated successfully, but these errors were encountered: