forge
forge copied to clipboard
feat: Added progress bar to git hub publisher
Fixes #3760 by @hichemfanter
- [x] I have read the contribution documentation for this project.
- [x] I agree to follow the code of conduct that this project follows, as appropriate.
- [ ] The changes are appropriately documented (if applicable).
- [ ] The changes have sufficient test coverage (if applicable).
- [ ] The testsuite passes successfully on my local machine (if applicable).
Summarize your changes:
- Integrated
cli-progress: Replaced the previoussetStatusLineupload counter with acli-progress.SingleBarinstance to show upload progress visually. - Progress Bar Features:
- Displays the release name (e.g.,
Uploading to v1.0.0). - Shows a bar, percentage, and current/total count (e.g.,
|#######............| 50% (5/10)). - Uses the
shades_classicpreset for a clean, styled look.
Implementation Details:
- Added cli-progress to dependencies.
- Initialized the bar with total artifact count before uploads.
- Incremented the bar in the done callback after each artifact is processed.
- Stopped the bar after all uploads complete.