From e842a2169d2b1f5876d1dfa527620741fa3a5d63 Mon Sep 17 00:00:00 2001 From: ukr8b3g-cmyk Date: Wed, 14 Oct 2026 01:27:24 +0900 Subject: [PATCH] Add manual Registry publication for verified v3.9.3 tag --- .github/workflows/publish_registry.yml | 55 ++++++++++++++++++++++++++ MANIFEST.sha256 | 1 + 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/publish_registry.yml diff --git a/.github/workflows/publish_registry.yml b/.github/workflows/publish_registry.yml new file mode 100644 index 0000000..553c75c --- /dev/null +++ b/.github/workflows/publish_registry.yml @@ -0,0 +1,55 @@ +name: Publish to Comfy Registry + +on: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: publish-comfy-registry-v3.9.3 + cancel-in-progress: false + +jobs: + publish: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Check out verified v3.9.3 release + uses: actions/checkout@v4 + with: + ref: v3.9.3 + persist-credentials: false + - name: Set up validation Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Verify release identity and package hashes + shell: bash + run: | + test "$(git rev-parse HEAD)" = "c9aaf7f07e6e11c56f3ecc7c0a88cf50786597f0" + python - <<'PY' + import hashlib + import pathlib + import tomllib + root = pathlib.Path(".") + metadata = tomllib.loads((root / "pyproject.toml").read_text()) + assert metadata["project"]["version"] == "3.9.3" + assert metadata["tool"]["comfy"]["PublisherId"] == "ukr8b3g-cmyk" + for name in ("REGISTRY_MANIFEST.sha256", "MANIFEST.sha256"): + rows = (root / name).read_text().splitlines() + for row in rows: + expected, path = row.split(" ", 1) + assert hashlib.sha256((root / path).read_bytes()).hexdigest() == expected, path + print(name, len(rows), "matched") + PY + - name: Verify publishing key is configured + env: + REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + shell: bash + run: test -n "$REGISTRY_ACCESS_TOKEN" + - name: Publish verified package + uses: Comfy-Org/publish-node-action@d2366e7abb6ab16f3bb03e3520ae25c8cf749bc9 + with: + skip_checkout: "true" + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} \ No newline at end of file diff --git a/MANIFEST.sha256 b/MANIFEST.sha256 index 8271efc..aee22b4 100644 --- a/MANIFEST.sha256 +++ b/MANIFEST.sha256 @@ -439,3 +439,4 @@ ea47f51abe07e9b2af840272939c0f363369636af30f4c6dffb0bb696b752c8a tests/frontend 82f049d7e51c8d6c43322ac4e0043d3fee6323c7989a2c446b86a936bd5ce790 tests/test_storage_frontend.py 8a512b3afdf394af043a4d6bd7c4fca0c9326e1207930bf5d96b4d0bd7205b4e tests/test_temporary_storage.py 42afab2241d39c1b07ff33d8b1370d4b0f729d81e53b4c99f4bc54c6a96b8800 web/storage_settings.js +dddcca0bf19eceb7fbae51d48a92021837826992566d53d214aaa40dcd1bcd55 .github/workflows/publish_registry.yml