Repository navigation
ci: 限制自动发布并增加手动时间戳版本入口 - #4150
Open
binarywang wants to merge 2 commits into
Open
binarywang wants to merge 2 commits into
binarywang wants to merge 2 commits into
Conversation
binarywang
marked this pull request as ready for review
November 16, 2026 03:48
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues blocking approval of the Maven Central publishing workflow changes.
No open issues 🎉
What changed in this PR
本 PR 调整 WxJava 的 Maven Central 发布流程,减少普通开发提交产生的版本,同时保留测试版、正式版发布规则,并提供手动发布时间戳版本的入口。
变更:
- 增加轻量发布检查,普通
developpush 跳过构建和发布,现有测试工作流保持不变。 - 支持从
develop手动发布时间戳版本,不复用正式版本或创建标签;发布任务采用排队机制,避免相互取消。 - 更新 README,说明新的自动发布策略和手动发布方式。
| File | Description |
|---|---|
| README.md | 更新版本发布说明,介绍按需手动发布。 |
| .github/workflows/maven-publish.yml | 增加发布判断和手动入口,调整权限与发布并发控制。 |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更目的
减少普通开发提交产生的 Maven Central 发布,保留现有
.B测试版和正式版发布规则。变更内容
developpush 仅执行轻量发布判断,跳过整个构建和发布 job;Maven Tests 工作流保持不变。workflow_dispatch。维护者可在 Actions → Publish to Maven Central → Run workflow 选择develop,按需发布沿用原格式的时间戳版本;即使 HEAD 是发布提交,手动运行也不会复用正式版本或创建标签。contents: read,并用 Bash 严格匹配refs/heads/develop,避免表达式忽略大小写导致其他分支进入发布。queue: max,防止普通提交取消发布,以及后续有意发布替换待处理发布。仓库默认分支已核实为
develop,此 PR 合并后手动入口才会在默认分支生效。此 PR 不执行合并、发布或手动触发。验证
git diff --check通过,远端对比只修改.github/workflows/maven-publish.yml。.B/ 正式版检测与原有发布步骤逐项比对,除 push-only 条件外保持一致;Maven Tests 文件 Git blob 完全相同。actionlint 1.7.12对新queue: max字段报兼容性错误;GitHub 当前官方文档已支持此字段。在仅移除此字段的临时副本上,其余 actionlint 检查通过。