From 1ae1f512d9e82d60e68735595fb87fc4800131fd Mon Sep 17 00:00:00 2001 From: FunnyFinger <119107033+FunnyFinger@users.noreply.github.com> Date: Tue, 22 Apr 2025 12:02:49 +0300 Subject: [PATCH] Create publish_action.yml --- .github/workflows/publish_action.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..3e6616d --- /dev/null +++ b/.github/workflows/publish_action.yml @@ -0,0 +1,20 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: # Allows manual triggering from the Actions tab + push: + branches: + - main # Change this if your main branch is named differently (e.g., master) + paths: + - "pyproject.toml" # Trigger only when pyproject.toml changes + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + 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 }} # Uses the secret you created