From 0e2d36db1aa635230823af940bf8accba11dfeca Mon Sep 17 00:00:00 2001 From: Vlad Gohn Date: Sat, 11 Apr 2026 01:13:17 +0300 Subject: [PATCH] . --- .github/workflows/publish_action.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml index 9a1d286..55a9a45 100644 --- a/.github/workflows/publish_action.yml +++ b/.github/workflows/publish_action.yml @@ -3,10 +3,11 @@ name: Publish to Comfy registry on: workflow_dispatch: push: - branches: - - main - paths: - - "pyproject.toml" + tags: + - "v*" + +permissions: + contents: read jobs: publish-node: @@ -16,7 +17,15 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Validate registry token + shell: bash + run: | + if [ -z "${{ secrets.REGISTRY_ACCESS_TOKEN }}" ]; then + echo "::error title=Missing REGISTRY_ACCESS_TOKEN::Add the Comfy Registry API key in Settings > Secrets and variables > Actions > Repository secrets." + exit 1 + fi + - name: Publish Custom Node - uses: Comfy-Org/publish-node-action@main + uses: Comfy-Org/publish-node-action@v1 with: personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}