Skip to content
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

Add action for publishing package to WinGet #6308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdanish-kh
Copy link

[ ] Please update master_changes.md file with your changes.
- Will do if changes look good to the maintainers

Description

I just saw an issue opened by a maintainer (cc @dra27) at winget-pkgs: microsoft/winget-pkgs#192924. Thought it would be a good idea to suggest adding an action to do this automatically on every new version released

This PR proposes to add a GitHub action for submitting the latest stable release to WinGet as it gets published. microsoft/winget-create is used as the tool for submitting the latest package.

Steps needed from maintainers

If the maintainers approve of these changes, they will need to do the following before merging this PR:

  1. Fork microsoft/winget-pkgs under a personal or bot account.
  2. Create a public access token (classic) with public_repo scope from the user account where the fork exists.
  3. Create a repo secret in this repo with the name WINGET_GITHUB_TOKEN

For reference, maintainers may see similar implemented actions in the following repos:
PowerToys, Terminal, DevHome, Oh-my-posh

@dra27
Copy link
Member

dra27 commented Nov 22, 2024

Thanks for this - I expect it’ll take me a while to actually action it all, but I hope we can put this in place for the 2.4 release next year! It’ll want adapting to double-check that the artefact is actually present (because the Windows binary gets added to the release after it’s published), but I’ll be very happy to sort that out.

@dra27 dra27 self-assigned this Nov 22, 2024
@dra27 dra27 added this to the 2.4.0~alpha1 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants