用途:这是一套 LLM 主导的发布流程,用于让模型按固定步骤完成版本更新与发布提交,再由 GitHub Actions 完成标签、Release 与二进制分发。当用户提出 release 或 /release 时触发。
主要能力与流程:先同步 origin/develop 并更新本地;随后更新版本号(Cargo.toml、CHANGELOG.md);创建 chore(release): vX.Y.Z 提交;收集 Closing Issue,并把结果写入 develop→main 的 PR 描述;release.yml 负责创建标签与 GitHub Release,publish.yml 负责构建二进制并附加到 Release。
必要用法与检查:使用前需 gh auth status 成功、git status --short 为空、origin/develop 可更新。同步命令为 git fetch origin、git pull origin develop。提交命令为 git add Cargo.toml Cargo.lock CHANGELOG.md、git commit -m "chore(release): vX.Y.Z"、git push origin develop。合并可走 ./scripts/prepare-release.sh、gh workflow run prepare-release.yml 或手动 gh pr create --base main --head develop --title "chore(release): vX.Y.Z"。发布后可用 gh release view vX.Y.Z 与 gh run list --workflow=publish.yml --limit 3 检查。
限制与注意:版本须遵循 Semantic Versioning;chore(release): 前缀是 release.yml 的触发条件;需已 gh auth login;资料未提供仓库地址、权限细节与失败回滚方式。