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 }}