From 507195b94d8616e080da0f611e418951ffa6f789 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 5 Sep 2024 09:30:51 +0000 Subject: [PATCH] add comfyui registry github action --- .github/workflows/comfy_registry.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/comfy_registry.yml diff --git a/.github/workflows/comfy_registry.yml b/.github/workflows/comfy_registry.yml new file mode 100644 index 0000000..52855c0 --- /dev/null +++ b/.github/workflows/comfy_registry.yml @@ -0,0 +1,32 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "src/comfyui-refiners/pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + # See https://github.com/Comfy-Org/publish-node-action + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install comfy-cli + shell: bash + run: | + pip install comfy-cli + - name: Publish Node + working-directory: ./src/comfyui-refiners + shell: bash + run: | + comfy --skip-prompt --no-enable-telemetry env + comfy node publish --token ${{ secrets.COMFYUI_REGISTRY_ACCESS_TOKEN }}