Update suites-help/开发者指南/套件发布指南.md
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
## 前置条件
|
## 前置条件
|
||||||
|
|
||||||
- 一个 API Key(从 https://auth.mercator.cn 获取)
|
- 一个 API Key(从 https://auth.mercator.cn 获取)
|
||||||
|
- 一个 **Gitea Token**(从 https://git.mercator.cn/user/settings/applications 创建,需 packages 写权限)
|
||||||
- 套件目录包含 `workflow.yaml` 和 `scripts/`
|
- 套件目录包含 `workflow.yaml` 和 `scripts/`
|
||||||
|
|
||||||
## 通过 API 发布
|
## 通过 API 发布
|
||||||
@@ -10,7 +11,8 @@
|
|||||||
```bash
|
```bash
|
||||||
curl -X POST https://suites.mercator.cn/api/v1/publish/upload \
|
curl -X POST https://suites.mercator.cn/api/v1/publish/upload \
|
||||||
-H "Authorization: Bearer mk_xxxx" \
|
-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` 包含:
|
其中 `my-suite.tar.gz` 包含:
|
||||||
|
|||||||
Reference in New Issue
Block a user