Repository navigation
ci: release 工作流挂载 dist/* 资产(根治 Release 资产为空) - #23
Conversation
gh release create 不带文件 → Release 条目无二进制归档(v0.1.7 实测空资产, 已手动补挂)。创建即挂 dist/*;已存在(workflow 重跑)走 upload --clobber 幂等补传,不重复建条目。
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
审查者指南(小型 PR 中折叠显示)审查者指南更新发布工作流,使 GitHub Release 创建时直接挂载 dist/* 构建资产;对于已存在的 Release,则通过幂等的 upload --clobber 补传或覆盖资产,修复 Release 条目资产为空的问题。 幂等发布 GitHub Release 资产的流程图flowchart TD
A[PyPI publish succeeds] --> B{gh release view TAG}
B -->|Release exists| C[gh release upload TAG dist/* --clobber]
B -->|Release missing| D[gh release create TAG --generate-notes dist/*]
C --> E[Release contains dist assets]
D --> E
文件级变更
提示与命令与 Sourcery 交互
自定义你的体验访问你的控制面板以:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's Guide更新发布工作流,使 GitHub Release 创建时直接挂载 dist/* 构建资产;对于已存在的 Release,则通过幂等的 upload --clobber 补传或覆盖资产,修复 Release 条目资产为空的问题。 Flow diagram for idempotent GitHub Release asset publishingflowchart TD
A[PyPI publish succeeds] --> B{gh release view TAG}
B -->|Release exists| C[gh release upload TAG dist/* --clobber]
B -->|Release missing| D[gh release create TAG --generate-notes dist/*]
C --> E[Release contains dist assets]
D --> E
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
嘿——我已经审阅了你的更改,看起来很棒!
Sourcery 评估
需要人工审阅。 如果工作流存在错误,可能会将不正确或不完整的 sdist/wheel 文件附加到 GitHub Release 中,导致这些构建产物在 PyPI 发布已成功的情况下对外可见。回滚可以阻止后续运行,并且可以移除或替换受影响的发布资产,因此损害范围有限且可以修复。
请帮助我变得更有用!请在每条评论上点击 👍 或 👎,我会利用这些反馈来改进审阅结果。
Original comment in English
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. If the workflow is wrong, it could attach incorrect or incomplete sdist/wheel files to a GitHub Release, making those artifacts externally visible even though the PyPI publication already succeeded. Reverting stops future runs, and the affected release assets can be removed or replaced, so the damage is bounded and repairable.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
变更
release.yml的 Create GitHub Release 步骤原先gh release create不带文件参数,GitHub Release 条目永远没有二进制归档(v0.1.7 实测资产为空,已手动补挂)。dist/*(sdist + wheel,二进制归档语义)upload --clobber幂等补传,不重复建条目验证
gh release upload TAG dist/*)Sourcery 总结
将构建的分发归档文件附加到 GitHub Releases,并在工作流重新运行时可靠地恢复资源。
错误修复:
增强功能:
CI:
Original summary in English
Summary by Sourcery
Attach built distribution archives to GitHub Releases and reliably restore assets on workflow reruns.
Bug Fixes:
Enhancements:
CI: