ci: 添加 Gitea Actions 流水线(CI 检查 + tag 自动发版)
CI / check (push) Successful in 5s
Release / release (push) Successful in 6s

This commit is contained in:
2026-09-17 00:46:19 +08:00
parent eb00b23de8
commit 0ecff6aabf
3 changed files with 154 additions and 0 deletions
+21
View File
@@ -73,6 +73,27 @@ fanyi/
└── README.md
```
## 🚀 版本发布(Gitea Actions 流水线)
流水线跑在 NUC 的 act_runner 上,配置见 `.gitea/workflows/`:
| 工作流 | 触发条件 | 作用 |
|---|---|---|
| `ci.yml` | push 到 `main` / PR | manifest 校验 + JS 语法检查 |
| `release.yml` | 推送 `vX.Y.Z` 标签 | 校验版本一致 → 打包 zip → 生成 Changelog → 创建 Release 并上传附件 |
发版三步:
```bash
# 1. 更新 manifest.json 中的 version 字段
# 2. 提交
git add -A && git commit -m "release: v1.0.1"
# 3. 打 tag 并推送(tag 必须与 manifest 版本一致,否则流水线报错)
git tag v1.0.1 && git push origin main --tags
```
发布地址:`https://git.zzzjy.cloud/zzzjy/PopLingo/releases`
## ❓ 常见问题
- **本地 HTML 文件不生效**:在 `chrome://extensions/` → 本插件 → 详情 → 打开「允许访问文件网址」