diff --git a/suites-help/开发者指南/快速开始.md b/suites-help/开发者指南/快速开始.md index 8dcd15c..a6b3ff9 100644 --- a/suites-help/开发者指南/快速开始.md +++ b/suites-help/开发者指南/快速开始.md @@ -33,9 +33,9 @@ params: steps: - id: say-hello name: 输出信息 - script_id: run + script: run params: - message: "${{inputs.message}}" + message: $params.message resolved_params: - step_index: 0 @@ -82,7 +82,10 @@ curl -X POST https://suites.mercator.cn/api/v1/task \ ## 第五步:发布 ```bash -agc publish ./my-first-suite +curl -X POST https://suites.mercator.cn/api/v1/publish \ + -H "Authorization: Bearer mk_xxxx" \ + -H "Content-Type: application/json" \ + -d '{"name": "my-first-suite", "version": "1.0.0", "description": "我的第一个套件", "workflow_yaml": "...", "scripts": {"run.py": "..."}}' ``` 发布后套件会在市场中展示,其他用户可以搜索和使用。 @@ -90,5 +93,5 @@ agc publish ./my-first-suite ## 查看已发布的套件 ```bash -agc suites list +curl -s https://suites.mercator.cn/api/v1/suites | jq '.[] | {name, version, description}' ```