Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Fuobe Connect: Registry icon and links, publish on a version tag

Adarsh2423486df97a
diff --git a/integrations/fuobe-connect/.comfyignore b/integrations/fuobe-connect/.comfyignore
index fd7f63b3..4553b534 100644
--- a/integrations/fuobe-connect/.comfyignore
+++ b/integrations/fuobe-connect/.comfyignore
@@ -1,3 +1,4 @@
tests/
.github/
.gitignore
+assets/
diff --git a/integrations/fuobe-connect/.github/workflows/publish.yml b/integrations/fuobe-connect/.github/workflows/publish.yml
index 1ac88fac..c5e6bd0a 100644
--- a/integrations/fuobe-connect/.github/workflows/publish.yml
+++ b/integrations/fuobe-connect/.github/workflows/publish.yml
@@ -1,16 +1,20 @@
-# Publishes Fuobe Connect to the Comfy Registry when pyproject.toml changes on main (a new version), or by hand.
+# Publishes Fuobe Connect to the Comfy Registry (https://registry.comfy.org), which ComfyUI-Manager searches.
+# It runs when a version tag such as v1.0.1 is pushed, or by hand. The tag must match the version in pyproject.toml.
# Needs the repository secret REGISTRY_ACCESS_TOKEN: a publishing key of the "workingprototype" Registry publisher.
# Without that secret the job publishes nothing and says so.
name: Publish to the Comfy Registry
on:
workflow_dispatch:
push:
- branches: [main]
- paths: [pyproject.toml]
+ tags: ["v*"]
permissions:
contents: read
+concurrency:
+ group: registry-publish
+ cancel-in-progress: false
+
jobs:
publish:
runs-on: ubuntu-latest
@@ -21,8 +25,23 @@ jobs:
- name: No publishing key
if: ${{ env.HAS_KEY != 'true' }}
run: echo "::warning::The repository secret REGISTRY_ACCESS_TOKEN isn't set, so nothing was published."
+ - name: Check out
+ if: ${{ env.HAS_KEY == 'true' }}
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: The tag matches the version
+ if: ${{ env.HAS_KEY == 'true' && github.ref_type == 'tag' }}
+ run: |
+ version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
+ if [ "v$version" != "$GITHUB_REF_NAME" ]; then
+ echo "::error::The tag $GITHUB_REF_NAME doesn't match version $version in pyproject.toml, so nothing was published."
+ exit 1
+ fi
- name: Publish
if: ${{ env.HAS_KEY == 'true' }}
- uses: Comfy-Org/publish-node-action@7578cdb0c1410f2515e6f9b1443c6859cab94f05 # 1.0.1
+ # main on 2025-05-10. The 1.0.1 tag runs `comfy --yes env`, an option that comfy-cli no longer has.
+ uses: Comfy-Org/publish-node-action@d2366e7abb6ab16f3bb03e3520ae25c8cf749bc9
with:
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+ skip_checkout: "true"
diff --git a/integrations/fuobe-connect/README.md b/integrations/fuobe-connect/README.md
index ebcd2de2..9bdff92f 100644
--- a/integrations/fuobe-connect/README.md
+++ b/integrations/fuobe-connect/README.md
@@ -250,6 +250,20 @@ and 3366. Set `FUOBE_CONNECT_TEST_PORT` to move them (the tests use that port an
`COMFYUI_DIR` to a ComfyUI folder to read the middleware from that copy of ComfyUI. The tests need only `aiohttp`.
They do not need models, a GPU or a running ComfyUI. The `tests` folder is not part of the published pack.
+## Releases
+
+Each version is published to the [Comfy Registry](https://registry.comfy.org), where ComfyUI-Manager finds it. To
+publish a version:
+
+1. In the Fuobe repository, set the new version in `pyproject.toml` and in `fuobe_connect/__init__.py`. The tests
+ check that the two are the same.
+2. Bring that change into this repository.
+3. Push a tag with the same version and a `v` in front, for example `v1.0.1`.
+
+The tag starts the workflow `.github/workflows/publish.yml`. The workflow publishes nothing when the tag and the
+version in `pyproject.toml` are different, or when the repository has no publishing key (the secret
+`REGISTRY_ACCESS_TOKEN`).
+
## Licence
MIT
diff --git a/integrations/fuobe-connect/assets/icon.png b/integrations/fuobe-connect/assets/icon.png
new file mode 100644
index 00000000..c9cea6ca
Binary files /dev/null and b/integrations/fuobe-connect/assets/icon.png differ
diff --git a/integrations/fuobe-connect/pyproject.toml b/integrations/fuobe-connect/pyproject.toml
index 2402c76b..be253c87 100644
--- a/integrations/fuobe-connect/pyproject.toml
+++ b/integrations/fuobe-connect/pyproject.toml
@@ -9,12 +9,16 @@ dependencies = []
classifiers = ["Operating System :: OS Independent"]
[project.urls]
+Homepage = "https://fuobe.com"
Repository = "https://github.com/workingprototype/ComfyUI-Fuobe-Connect"
Documentation = "https://github.com/workingprototype/ComfyUI-Fuobe-Connect#readme"
-"Bug Tracker" = "https://github.com/workingprototype/ComfyUI-Fuobe-Connect/issues"
+Issues = "https://github.com/workingprototype/ComfyUI-Fuobe-Connect/issues"
+# Read by the Comfy Registry (https://registry.comfy.org), which ComfyUI-Manager searches.
[tool.comfy]
PublisherId = "workingprototype"
DisplayName = "Fuobe Connect"
+# 400 x 400 PNG in this repository; .comfyignore keeps it out of the published pack.
+Icon = "https://raw.githubusercontent.com/workingprototype/ComfyUI-Fuobe-Connect/main/assets/icon.png"
requires-comfyui = ">=0.3.0"
includes = []
diff --git a/integrations/fuobe-connect/tests/test_graph.py b/integrations/fuobe-connect/tests/test_graph.py
index d713af93..6b75bbc2 100644
--- a/integrations/fuobe-connect/tests/test_graph.py
+++ b/integrations/fuobe-connect/tests/test_graph.py
@@ -8,6 +8,7 @@ import glob
import json
import os
import re
+import struct
import sys
import tempfile
import unittest
@@ -1069,6 +1070,18 @@ class PackageTest(unittest.TestCase):
with open(os.path.join(PACK, ".comfyignore"), encoding="utf-8") as f:
ignored = f.read().split()
self.assertIn("tests/", ignored)
+ self.assertIn("assets/", ignored)
+
+ def test_registry_icon(self):
+ """The Registry shows the icon from this repository: a square PNG of at most 400 x 400."""
+ with open(os.path.join(PACK, "pyproject.toml"), encoding="utf-8") as f:
+ url = re.search(r'^Icon = "([^"]+)"', f.read(), re.M).group(1)
+ prefix = "https://raw.githubusercontent.com/workingprototype/ComfyUI-Fuobe-Connect/main/"
+ self.assertTrue(url.startswith(prefix), url)
+ with open(os.path.join(PACK, *url[len(prefix):].split("/")), "rb") as f:
+ head = f.read(24)
+ self.assertEqual(head[:8], b"\x89PNG\r\n\x1a\n")
+ self.assertEqual(struct.unpack(">II", head[16:24]), (400, 400))
if __name__ == "__main__":