ci: 增加部署后发布验收脚本

This commit is contained in:
que01 committed 2026-10-12 00:44:21 +08:00
1 parent 85f37d2eae
commit 9c15a822e9
4 files changed
+125

No files matched your search

+12
View File
@@ -103,3 +103,15 @@ curl -fsS "$API_BASE_URL/health"
```bash
curl -fsS "$API_BASE_URL/public/workspace?brandSlug=$BRAND_SLUG"
```
上述四步验收可以用统一脚本执行:
```bash
API_BASE_URL=https://api.example.com \
BRAND_SLUG=$BRAND_SLUG \
ADMIN_USERNAME=$ADMIN_USERNAME \
ADMIN_PASSWORD=$ADMIN_PASSWORD \
pnpm deploy:verify
```
脚本要求账号已完成初始密码修改,品牌发布检查全部通过,公开工作区已发布且至少有一项业务。凭据只从环境变量读取,不能写入仓库。