From 252ac8d958df7c88d3363d2d27e9884bbb07719a Mon Sep 17 00:00:00 2001 From: yolain Date: Wed, 26 Nov 2025 00:49:10 +0800 Subject: [PATCH] Publish to Comfy registry --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ pyproject.toml | 14 ++++++++++++++ requirements.txt | 10 ++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/workflows/publish.yml 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..93e0f94 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "pyproject.toml" + +permissions: + issues: write + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'yolain' }} + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@v1 + 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/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9d1bfe6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "comfyui-easy-sam3" +description = "A ComfyUI custom node package for segment anything 3" +version = "1.0.0" +license = {file = "LICENSE"} +dependencies = ["timm>=1.0.17", "ftfy==6.1.1", "regex", "iopath>=0.1.10", "einops>=0.6.0", "decord>=0.6.0", "pycocotools>=2.0.10", "numpy>=1.26", "tqdm", "typing_extensions"] + +[project.urls] +Repository = "https://github.com/yolain/ComfyUI-Easy-Sam3" + +[tool.comfy] +PublisherId = "yolain" +DisplayName = "ComfyUI-Easy-Sam3" +Icon = "" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ae5e9a7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,10 @@ +timm>=1.0.17 +ftfy==6.1.1 +regex +iopath>=0.1.10 +einops>=0.6.0 +decord>=0.6.0 +pycocotools>=2.0.10 +numpy>=1.26 +tqdm +typing_extensions \ No newline at end of file