Files
agent-profiles/suites-help/开发者指南/套件发布指南.md
T
admin 78bd6c2e9d docs: 更新文档匹配执行器 steps/params 格式 (#16)
- Workflow-规范.md: 添加 type: python 字段
- TOOLS.md: 添加 type: python 到示例
- 套件发布指南.md: 更新为 upload 端点 + tar.gz 上传方式 + 完整示例
- CLI-参考.md: gis-actions 版本 3.0.2 → 3.0.5
2026-07-14 13:17:21 +08:00

823 B

套件发布指南

前置条件

通过 API 发布

curl -X POST https://suites.mercator.cn/api/v1/publish/upload \
  -H "Authorization: Bearer mk_xxxx" \
  -F "file=@my-suite.tar.gz"

其中 my-suite.tar.gz 包含:

my-suite/
├── workflow.yaml
└── scripts/
    └── run.py

workflow.yaml 示例:

name: my-suite
description: 我的套件
version: 1.0.0
author: 作者
tags: [gis]
category: general

params:
  input_path:
    type: string
    required: true
    desc: 输入文件路径

base_image: gis-base:latest

steps:
  - id: step1
    name: 处理步骤
    type: python
    script_id: run
    params:
      input_path: $params.input_path