docs: fix publish flow, add gitea_token requirement in AGENTS.md
This commit is contained in:
@@ -68,7 +68,21 @@ agc run /tmp/test-output \
|
||||
```
|
||||
|
||||
### 6. 发布
|
||||
打包为 `scripts.tar.gz`,通过 API 上传到 SuiteHub Packages,在套件市场注册。
|
||||
|
||||
前置条件:API Key(auth.mercator.cn) + Gitea Token(git.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. 迭代
|
||||
根据用户反馈修 bug、发新版本。
|
||||
根据用户反馈修 bug、发新版本。每次发布需更新 workflow.yaml 中的 version 字段。
|
||||
|
||||
Reference in New Issue
Block a user