Files
katelyatv/RELEASING.md
T

46 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 发布流程(每次更新必做)
> 目标:任何一次改动都带着完整记录推到 Gitea,README 面向用户、CHANGELOG 面向历史,两者都不落下。
## 1. 改动落地(容器内)
```bash
# 改完容器内文件后,务必 node --check 通过再固化
docker commit katelyatv katelyatv:fixedNN # 镜像名固定用 fixedNN 累加
sed -i 's|katelyatv:fixedNN-1|katelyatv:fixedNN|' docker-compose.redis.yml
docker compose -f docker-compose.redis.yml up -d
```
## 2. 浏览器实测验证
改 UI 必须登录后在真实页面上验证(登录接口见运维记录),不能只看日志。
## 3. 写更新日志(两处,缺一不可)
1. **CHANGELOG.md** 顶部新增一节:`## 日期 → v-fixedNN`,列清改了什么
2. **README.md** 的「📝 更新日志(最近)」列表顶部插入同一条,保持最近 8 条左右,超出的删掉(完整历史在 CHANGELOG.md)
## 4. README 检查项(每次发布前过一遍)
- [ ] 体验地址 `https://tv.88531.cn` 在标题下方显眼位置
- [ ] 增强功能列表与实际功能一致(新加的功能要补进去)
- [ ] 安装步骤可照抄执行(`.env.example` 同步更新)
- [ ] 「当前镜像 fixedNN」的版本号与 compose 一致
## 5. 推送 Gitea
```bash
cd /vol1/1000/HD1/docker/katelyatv
git add -A
git -c user.name="jinghui" commit -m "v-fixedNN:<一句话说明>"
git remote set-url origin "http://jinghui:$(cat /root/.gitea_api_token)@192.168.68.19:3200/jinghui/katelyatv.git"
git push -q origin main
git remote set-url origin "http://192.168.68.19:3200/jinghui/katelyatv.git" # 还原,勿把 token 留在 remote
```
## 硬规则
- `.env`、镜像 tar、token 永不入库(`.gitignore` 已覆盖)
- GitHub 上游链接(`github.com/katelya77/KatelyaTV` 等)不改名,改了会失效
- 容器一律 `restart: always`,compose 改动后核验