From 082a18f46c4358c8a2013b4068162906d4fa73e2 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 23 Jun 2024 17:09:49 +0000 Subject: [PATCH] Initial boilerplate --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ .gitignore | 1 + __init__.py | 2 ++ pyproject.toml | 14 ++++++++++++++ requirements.txt | 1 + 5 files changed, 39 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 pyproject.toml create mode 100644 requirements.txt diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b30ca0e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +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: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..4c4bf7d --- /dev/null +++ b/__init__.py @@ -0,0 +1,2 @@ +from .node import NODE_CLASS_MAPPINGS +__all__ = ['NODE_CLASS_MAPPINGS'] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..853a78c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "comfyui-replicate" +description = "Run Replicate models in ComfyUI" +version = "1.0.0" +license = "LICENSE" + +[project.urls] +Repository = "https://github.com/fofr/comfyui-replicate" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "fofr" +DisplayName = "ComfyUI-Replicate" +Icon = "" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a58c23d --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +replicate