chore(release): verify remote asset hashes

This commit is contained in:
2026-07-14 11:45:02 +08:00
parent 16ff37845d
commit 3b8138ea51
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -163,6 +163,8 @@ curl -k -s https://peilian.njzhmj.top/h5/ | sed -n '1,20p'
```bash
./scripts/release-preflight.sh
RELEASE_REMOTE_URL=https://peilian.njzhmj.top ./scripts/release-preflight.sh
# 发布后核验线上主资源是否与当前本地产物一致
RELEASE_REMOTE_URL=https://peilian.njzhmj.top RELEASE_VERIFY_REMOTE_MATCH=true ./scripts/release-preflight.sh
```
发布时必须保留 preflight 输出、远端备份目录和发布后浏览器回归结果;回滚优先使用对应备份目录恢复,再重启后端服务,不能直接覆盖当前线上目录而不留证据。