docs: fix publish flow, add gitea_token requirement in AGENTS.md

This commit is contained in:
2026-07-16 07:23:52 +00:00
parent 6866062830
commit 3a93f63dc3
+16 -2
View File
@@ -68,7 +68,21 @@ agc run /tmp/test-output \
``` ```
### 6. 发布 ### 6. 发布
打包为 `scripts.tar.gz`,通过 API 上传到 SuiteHub Packages,在套件市场注册。
前置条件:API Keyauth.mercator.cn + Gitea Tokengit.mercator.cn,需 write:packages 权限)
```bash
# 打包
tar czf my-suite.tar.gz --exclude='.git' --exclude='__pycache__' my-suite/
# 上传发布
curl -X POST https://suites.mercator.cn/publish/upload \
-H "Authorization: Bearer $API_KEY" \
-F "file=@my-suite.tar.gz" \
-F "gitea_token=$GITEA_TOKEN"
```
合规检测和参数校验由发布 API 自动完成。
### 7. 迭代 ### 7. 迭代
根据用户反馈修 bug、发新版本。 根据用户反馈修 bug、发新版本。每次发布需更新 workflow.yaml 中的 version 字段。