Jianwu Huang
|
9237cac9c3
|
Merge pull request #351 from JefferyHcool/fix/ci-commitlint
fix(ci): commitlint workflow 去掉伪 input + 规范 release merge commit 格式
|
2026-05-07 14:47:03 +08:00 |
|
huangjianwu
|
ac72cc6d6e
|
ci(tauri): 桌面端构建去掉 Linux,只保留 macOS + Windows
Tauri Linux 构建 (ubuntu-22.04, x86_64-unknown-linux-gnu) 在 v2.1.x 这几次发版上
持续 17m+ 才完成,相比 macOS / Windows 更慢,且没有面向 Linux 桌面端用户的实际分发渠道。
直接从 matrix 里去掉。
清理:
- matrix 删除 ubuntu-22.04 条目
- 'Install Linux Dependencies' step(仅 ubuntu 触发)整段移除
- artifact 收集步里的 .deb / .AppImage 两条 find 命令移除
Linux 用户继续可以走 Docker 镜像 (ghcr.io/jefferyhcool/bilinote),那条线没变。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-07 14:30:07 +08:00 |
|
huangjianwu
|
7358cd0123
|
fix(ci): commitlint workflow 去掉伪 input + 规范 release merge commit 格式
v2.1.3 push master 时 Lint commit messages job 红了,根因两条:
1. workflow 里写了 'firstParent: false',但 wagoid/commitlint-github-action@v6
的合法 input 列表里没这个字段,被 ignore 同时打 warn
2. release merge commit 标题 'Release v2.1.3' 不符合 type(scope): subject 格式,
commitlint 报 subject-empty + type-empty
· @commitlint/config-conventional 默认 ignore 'Merge ' 前缀的 commit,
但我们手动 -m 把标题写成 'Release vX.Y.Z' 跳过了豁免
修:
- 去掉 .github/workflows/commitlint.yml 里那条 firstParent 假 input
- RELEASING.md §3 加入 merge commit 标题模板:
· 合 master 用 'chore(release): vX.Y.Z'
· 回灌 develop 用 'chore(release): merge release/X.Y.Z back into develop'
- CONTRIBUTING.md §6.3 同步加这条提醒
历史上 master / develop 的 'Release v2.1.x' 那几个 merge commit 已经在 history
里,没法回头改(不能强推 master)。但 commitlint 在 push 时只 lint 推送范围里的
新 commit,旧 commit 不会重新校验,所以不会持续报错。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-07 14:19:39 +08:00 |
|
huangjianwu
|
b2af0e4e53
|
chore(repo): 仓库工具链——issue/PR 模板 + commitlint CI + 插件发版工作流
把 CONTRIBUTING.md 里写的规范落到 GitHub 工程化层。
Issue / PR 模板:
- .github/ISSUE_TEMPLATE/{config,bug_report,feature_request}.yml
· yml 表单形式,跟随当前工作区分类(backend / frontend / extension / Tauri)
· bug_report 强制选版本 + 部署方式 + 复现步骤;提交前自查不夹带 secrets
· config.yml 禁用空白 issue,引导 Discussions
- .github/pull_request_template.md:把 CONTRIBUTING §5.2 的 PR 正文要求落成 checklist
- 删旧版 .md 模板(含中文文件名那条),避免新老两套并存
Commitlint:
- .commitlintrc.json:extend conventional + 自定义 type 白名单(feat/fix/docs/style/refactor/perf/test/build/ci/chore/ui/revert)
- .github/workflows/commitlint.yml:用 wagoid/commitlint-github-action@v6,PR + push develop/master 时校验
· subject-case / subject-full-stop 关掉,兼容中文 subject
· header-max-length 100 字符 warn 级别,不阻塞合并
插件发版工作流:
- .github/workflows/release-extension.yml:v* tag push 时
· cd BillNote_extension && pnpm install + build
· pack:zip / pack:xpi / pack:crx(crx 缺 key 自动跳过)
· 产物重命名带版本后缀,挂到对应 GitHub Release
- 末尾保留 publish-chrome / publish-edge / publish-firefox 三段注释,配齐 secrets 即可启用商店自动发布
- RELEASING.md:发版执行手册,覆盖 release/* 流程 + 各商店人工上传步骤 + 自动发布所需 secrets
CONTRIBUTING.md 关联文档区指到新增的 RELEASING.md,commit 章节加 commitlint 落地说明。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-07 13:45:32 +08:00 |
|
huangjianwu
|
cb5c11d41a
|
fix(ci): 移除 pnpm install 的 --frozen-lockfile 标志
由于不提交 pnpm-lock.yaml 文件,移除 --frozen-lockfile 标志以修复桌面端构建失败
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 18:50:48 +08:00 |
|
huangjianwu
|
6d5d1ad373
|
fix(ci): 修复 GitHub Actions 构建错误
移除 setup-node 中的 pnpm 缓存配置以修复 macOS 构建失败,修改 Dockerfile 不再依赖 pnpm-lock.yaml 以修复 Docker 构建失败
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 18:11:55 +08:00 |
|
huangjianwu
|
3582e65dc5
|
feat(ci): 桌面端构建自动创建 GitHub Release 并附带安装包
- 新增 release job:等所有平台构建完成后自动创建 Release
- 收集各平台产物(dmg/msi/exe/deb/AppImage)到统一目录
- 使用 softprops/action-gh-release 创建 Release 并上传产物
- 自动生成 SHA256 校验和文件
- 自动根据 commits 生成 Release Notes
- 仅在推送 tag 时触发 Release 创建
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-23 17:58:57 +08:00 |
|
huangjianwu
|
f6a3438079
|
feat(build): 全面优化打包流程,Docker 镜像自动发布到 GHCR
Docker 优化:
- Dockerfile 层缓存(requirements/lockfile 先复制再安装)
- ARG 可配置镜像源,国际用户可覆盖为默认源
- 前端 Dockerfile 改用 corepack + frozen-lockfile
- 精简 .dockerignore,排除 .git 和 Tauri 构建产物
CI/CD 优化:
- docker-build 自动推送到 GHCR,支持 amd64/arm64 双架构
- 桌面端 CI 增加 pip/pnpm/cargo 缓存,升级 actions 版本
- Python 版本对齐为 3.11,增加 Linux 构建矩阵
- build.sh 加 -y 覆盖标志
文档更新:
- README Docker 部署简化为 docker pull + docker run
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-23 17:48:34 +08:00 |
|
圣达生物多
|
769aca10db
|
添加 Docker 构建工作流和完整应用镜像的 Dockerfile
|
2026-02-05 21:34:57 +08:00 |
|
Jianwu Huang
|
03cb670bfa
|
Update main.yml
|
2025-06-19 18:13:01 +08:00 |
|
Jianwu Huang
|
8ad1ea6d38
|
Merge pull request #143 from JefferyHcool/feature/1.8.0
chore:win打包
|
2025-06-19 18:10:11 +08:00 |
|
JefferyHcool
|
cdcbfc89bc
|
ci/cd:修复win打包
|
2025-06-19 18:09:01 +08:00 |
|
Jianwu Huang
|
1ab91965f3
|
Update main.yml
|
2025-06-19 17:35:06 +08:00 |
|
Jianwu Huang
|
689a6d99b0
|
Update main.yml
|
2025-06-19 17:26:49 +08:00 |
|
Jianwu Huang
|
2a164828a2
|
Update main.yml
|
2025-06-19 17:23:18 +08:00 |
|
Jianwu Huang
|
abbda6848a
|
Update main.yml
|
2025-06-19 17:17:41 +08:00 |
|
Jianwu Huang
|
3afc0c1166
|
Update main.yml
|
2025-06-19 17:11:56 +08:00 |
|
Jianwu Huang
|
2683569a0b
|
Update main.yml
|
2025-06-19 16:57:41 +08:00 |
|
Jianwu Huang
|
5876b88a8a
|
Update main.yml
|
2025-06-19 16:28:25 +08:00 |
|
Jianwu Huang
|
58648399a2
|
Update main.yml
|
2025-06-19 16:26:58 +08:00 |
|
Jianwu Huang
|
7d9d47d7b7
|
Create workflow.yml
|
2025-06-19 16:21:14 +08:00 |
|
Jianwu Huang
|
eb0a46183d
|
Update issue templates
|
2025-04-28 09:54:29 +08:00 |
|
Jianwu Huang
|
75541f3d34
|
Update issue templates
|
2025-04-27 23:26:36 +08:00 |
|