-
Notifications
You must be signed in to change notification settings - Fork 111
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 Winget Releaser workflow #301
Conversation
Thank you for contributing to the ugrep project! I was out of town. I will will look at this asap. Thanks for the detailed steps. |
OK. I've forked https://github.com/Genivia/winget-pkgs to organization @Genivia, installed the Pull app, and added |
I've followed the steps to the point with the classic PAT https://github.com/Genivia/ugrep/actions/runs/6563930847/job/17829245912 This does not look familiar to me. I suppose an authentication error happened. Perhaps the token should be associated with @Genivia instead of @genivia-inc? But the developer settings are different for @Genivia and do not align with the instructions. The personal token I've generated shows: |
That is definitely more clear to me now. I've added the generated PAT as a secret to the ugrep repository. It wasn't clear where to look in the repo settings to do just that. |
Thank you for helping out with the silly mistake I had made earlier. Glad it works now! |
The winget release is taking some time to get reviewed, which is to be expected when reviews are needed. But I plan to release update 4.3.3 sometime this week with new additions and a fix that are ready. Will the 4.3.3 release interfere with the pending winget 4.3.2 release? |
No, it won't. It will just simply create a new PR with a new version. |
Thanks! |
When installing ugrep with winget, we only get the Please consider this recommendation. Thanks! |
Unfortunately, Winget does not support multiple aliases from a single executable yet: microsoft/winget-cli#2884. However, a workaround exists if the binary is wrapped under a If you can release the zipped builds, I can add the |
Thank you for your suggestion. Are you saying that bundling ugrep.exe together with ug.exe in one zip suffices? Or should these be separate zip? Then add this/those ugrep.zip as a release artifact? I need a bit more info to understand. |
Yes, this would be the best way to do it. |
One more question: will this create an alias for
then this will not work. It will not work, because the executing program is still
|
You said about bundling two copies of the same executable ( |
Got it. Instead of |
Ideally, the proper naming of the file should be something like |
OK. Will do. |
The v4.4.0 release is updated with the zip file. I've largely automated the file creations and zipping on my side, so I can't forget this extra step. |
Thanks. I have created PRs for Winget and Scoop to update the URLs: |
@genivia-inc |
OK. I didn't know that would be a problem. Sorry about that. There is a minor update coming anyway, which will be tagged v4.4.1. So please stay tuned. The minor update is to fix #335 for distribution packagers when dealing with bash, fish and zsh autocompletion installation. On that note, I wonder if PowerShell autocompletion would be nice for ugrep. I will look into that for a future update. |
I've released v4.4.1. I keep seeing the "Manifest Validation Error" on microsoft/winget-pkgs#131159 (comment) so do I need to include a multi-file manifest as described here https://github.com/microsoft/winget-pkgs/tree/master/doc/manifest/schema/1.4.0 It is not clear where to add a manifest. I assume this needs to be added to the ugrep-windows-x64.zip file? I could automate that. |
Since my 4.4.0 PR hasn't been merged yet (microsoft/winget-pkgs#131108), Komac (the underlying tool Winget Releaser uses) hasn't picked up the updated changes for the manifest yet. I will go ahead and close the PR in favor of the latest one. I have created a suggestion in your PR to fix the problem; please take a look: microsoft/winget-pkgs#131159 (comment). |
I saw your PR suggestion and already committed it, which appears to have resolved the Manifest Validation Error. |
@sitiom Just FYI there was a Winget 4.4.0 PR error message microsoft/winget-pkgs#131029 (comment) after 4.4.1 was released. I will close that PR and delete its branch. |
Release v4.5.1 got stuck in the pipeline somehow:
See https://github.com/Genivia/ugrep/actions/runs/7432086076/job/20223497334 I don't see anything out of the ordinary that could have caused this on my side. Releasing 4.5.0 the day before went OK. |
The error above shows:
Did the token you have provided expire somehow? |
No worries 🙂
Yeah, that's normal for a secret.
Not sure what the problem is, but maybe regenerate and update the |
No luck. I've generated a new |
Ping @vedantmgoyal2009 |
Also the next update 4.5.2 failed: https://github.com/Genivia/ugrep/actions/runs/7475947513/job/20345225591 |
Please re-run the workflow after updating https://github.com/Genivia/winget-pkgs manually. The last update made by bot was 5 days ago (https://github.com/Genivia/winget-pkgs/pulls?q=is%3Apr+is%3Aclosed). |
@vedantmgoyal2009 thanks! A manual sync of the fork worked. I'll enable auto-sync, if I can find that setting. It's not an option of the "sync fork" button. It would be really nice if GitHub had an "auto-sync" option with the "sync fork" button. |
@sitiom The ugrep v6.5 winget workflow failed today with a zip decompression error. However, when I checked the release artifact ugrep-windows-x64.zip it is absolutely fine. Could this be related to PR #420? FYI manual sync as explained in this GitHub doc is no longer selectable in a forked repo, i.e. does not show in my winget-pkgs to keep winget-pkgs in sync. |
Perhaps it's a one-off error (possibly got corrupted on download?); have you tried running it again? I tried running the exact same command, and it worked: Let's see if the problem persists in the next release.
Perhaps it's because there's an existing PR against the master branch: |
Thank you for your reply. Sorry this happened on a Friday + weekend. I was confident the release has no issues after testing etc. So I went ahead. Reran the job and it passed. Strange to see a zip download and unzip fail, but it's perhaps the best explanation. Friday releases are cursed... |
This action automatically generates manifests for Winget Community Repository (microsoft/winget-pkgs) and submits them.
ugrep has been added to Winget (microsoft/winget-pkgs#122139), and this workflow will be used to update it.
Before merging this:
public_repo
scope as a repository secret namedWINGET_TOKEN
.If you want to see an example of a PR created using this action, see microsoft/winget-pkgs/pulls (Pull request has been created with WinGet Releaser).