Add CI action for publishing package to WinGet#189
Conversation
|
Does this somehow automatically find the path inside the ZIP file to the EXE, even though it changes every release? Also, |
Yes it does. winget-create tries to obtain a "matching" relative path similar to the one used in previous manifest. Since the binary is always going to be called |
Honest question: Why does that change every release? Is that a good idea? |
It is best practice for release archives to contain a top-level folder named with the version of the project. This can be observed in any number of open-source projects in all sorts of languages across the ecosystem: libarchive, curl, the apache web server, mediawiki, zfs, ... Yes. It is a good idea. |
This is similar to the one in microsoft/terminal, and uses wingetcreate.
Change
Add a GitHub action similar to the Terminal one for publishing package to winget-pkgs repository on release. microsoft/winget-create is the tool used for creating and submitting the manifest
Steps needed from maintainers
If the maintainers approve of this change then:
WINGET_TOKENthat's a public access token (classic) withpublic_reposcope from the user account where the winget-pkgs fork exists (or re-use the terminal's secret to have submissions made from the same bot account @consvc)Validation
One can use a dummy version and run a wingetcreate command (without passing the
--submitflag that opens a PR) to verify if the command would work correctly