🚀 ci(release): 建立 v0.1.0 发布工作流 - #131
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 #130
做了什么
v0.1.0tag 驱动的 GitHub Release 工作流,构建 Java/Web 统一发行 ZIP 和 Windows x64 NSIS 安装包。SHA256SUMS.txt,并通过gh release create发布可追溯资产。0.1.0-SNAPSHOT固定为0.1.0,配置 GitHub Packages Maven Registry,并附带 source JAR。实现与架构
com.babelflux:babelflux-backend:0.1.0;schema 仍由 Flyway 管理,应用账号与迁移账号可分离;Release 不自动部署生产环境。实验记录
实验:在 Windows 本机按发布门禁运行后端测试、后端 package、前端测试/生产构建和桌面前端构建,并检查发布工作流的资产路径与校验和逻辑。
结果:后端
134 tests通过、5个 opt-in 外部集成按默认配置跳过;后端mvn -B -DskipTests package成功并生成可执行 JAR 与 source JAR;前端59 passed和 Vite production build 通过;桌面npm run build通过。桌面 NSIS 未在本机执行,因环境没有cargo,发布工作流会在windows-latest通过dtolnay/rust-toolchain@stable提供 Rust。结论:发布配置、Maven 包装和 Web 资产在本地可复现;NSIS 与 GitHub Release/Packages 上传需由合并后的 tag 工作流完成,不能由本地结果外推。
验证
风险与回滚
GITHUB_TOKEN的packages: write/contents: write权限;Windows NSIS 依赖 runner 的 Rust、WebView2 和 Tauri 工具链。Release 资产生成前任一 job 失败都不会发布。deployment/README.md切回前一个已验证 Release,当前工作流不执行生产部署。提交前检查