diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..be0b02f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@main + with: + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} diff --git a/README.md b/README.md index 887ae67..963c70e 100644 --- a/README.md +++ b/README.md @@ -35,15 +35,19 @@ A single ComfyUI node that reads any JSON file and **automatically creates outpu ## Installation +### ComfyUI Manager +Search for **JSON Dynamic Loader** in the ComfyUI Manager registry. + +### Manual ```bash cd ComfyUI/custom_nodes/ -git clone ComfyUI-JSON-Dynamic +git clone https://github.com/ethanfel/ComfyUI-JSON-Dynamic.git # Restart ComfyUI ``` ## Usage -1. Add **JSON Loader (Dynamic)** node to your workflow +1. Add **JSON Dynamic Loader** node to your workflow 2. Enter a `json_path` and `sequence_number` 3. Click **Refresh Outputs** 4. Outputs appear named after your JSON keys with correct types @@ -60,7 +64,7 @@ git clone ComfyUI-JSON-Dynamic - JSON Loader (Dynamic) + JSON Dynamic Loader json_path: /data/prompt.json sequence_number: 1 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..770437f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "comfyui-json-dynamic" +version = "1.0.0" +description = "A ComfyUI node that auto-discovers JSON keys and exposes them as typed output slots" +license = { file = "LICENSE" } +requires-python = ">=3.10" +classifiers = ["Operating System :: OS Independent"] + +[project.urls] +Repository = "https://github.com/ethanfel/ComfyUI-JSON-Dynamic" + +[tool.comfy] +PublisherId = "ethanfel" +DisplayName = "JSON Dynamic Loader"