🐛 fix(release): 支持已发布包的 tag 重跑 - #135
Merged
Merged
Conversation
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.
关联 Issue
Closes #134
做了什么
workflow_dispatch增加deploy_package布尔开关,默认值为true。deploy_package=false时,执行mvn package -DskipTests验证 JAR/source JAR,跳过不可重复的 Maven deploy。true时保持原有 Maven deploy 行为。实现与架构
v0.1.0tag 和 Maven Package;重跑使用现有 tag,版本发布仍由新 tag 触发。实验记录
实验:检查首轮与第二轮
v0.1.0run,确认 GitHub Packages 已存在0.1.0,重复mvn deploy返回失败;新增手动输入分支并静态检查 shell 条件。结果:已有版本可通过
deploy_package=false跳过重复上传,同时继续执行 package、统一 ZIP、Windows NSIS、校验和及 Release job。结论:发布重试具备显式、可审计的版本分发控制;正常新版本仍不会静默跳过 Maven deploy。
验证
风险与回滚
true,Maven Registry 会拒绝重复版本;输入描述已明确false用途。若传入false到尚未发布的版本,则不会创建 Maven Package,应改为新 tag 或重新 dispatch。提交前检查