From 805879fbf0fe70e2f8d1a5bd5ffe3a572173fa72 Mon Sep 17 00:00:00 2001 From: SpicyAPI Date: Tue, 6 Oct 2026 16:34:09 +0800 Subject: [PATCH] Add the Comfy Registry publish workflow --- .github/workflows/publish_action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish_action.yml diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml new file mode 100644 index 0000000..da0681b --- /dev/null +++ b/.github/workflows/publish_action.yml @@ -0,0 +1,26 @@ +name: Publish to Comfy Registry + +# Publishes the node pack to registry.comfy.org whenever the version in +# pyproject.toml changes on main, or when run by hand from the Actions tab. +# Needs the REGISTRY_ACCESS_TOKEN repository secret (a Comfy Registry API key). +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish custom node to the registry + runs-on: ubuntu-latest + # Forks have no registry key; skip instead of failing. + if: ${{ github.repository_owner == 'spicyapi-ai' }} + 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 }}