From d2321a0147ce6ea1fc90e9d8105619db8cfe017d Mon Sep 17 00:00:00 2001 From: Huawei Date: Tue, 14 Jul 2026 07:13:23 +0000 Subject: [PATCH] =?UTF-8?q?Update=20suites-help/=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E8=80=85=E6=8C=87=E5=8D=97/=E5=A5=97=E4=BB=B6=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=8C=87=E5=8D=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suites-help/开发者指南/套件发布指南.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/suites-help/开发者指南/套件发布指南.md b/suites-help/开发者指南/套件发布指南.md index a0adb81..198409f 100644 --- a/suites-help/开发者指南/套件发布指南.md +++ b/suites-help/开发者指南/套件发布指南.md @@ -3,6 +3,7 @@ ## 前置条件 - 一个 API Key(从 https://auth.mercator.cn 获取) +- 一个 **Gitea Token**(从 https://git.mercator.cn/user/settings/applications 创建,需 packages 写权限) - 套件目录包含 `workflow.yaml` 和 `scripts/` ## 通过 API 发布 @@ -10,7 +11,8 @@ ```bash curl -X POST https://suites.mercator.cn/api/v1/publish/upload \ -H "Authorization: Bearer mk_xxxx" \ - -F "file=@my-suite.tar.gz" + -F "file=@my-suite.tar.gz" \ + -F "gitea_token=<你的 Gitea Token>" ``` 其中 `my-suite.tar.gz` 包含: