2.4 KiB
2.4 KiB
GitHub Action Setup for ComfyUI Registry Publishing
This repository includes a GitHub Action that automatically publishes your custom node to the ComfyUI Registry whenever the pyproject.toml file is updated, using the official ComfyUI publish action.
Setup Instructions
1. Add GitHub Repository Secret (REQUIRED)
- Go to your GitHub repository: https://github.com/Niutonian/ComfyUI-Niutonian-Themes
- Click on Settings tab
- In the left sidebar, click Secrets and variables → Actions
- Click New repository secret
- Name:
REGISTRY_ACCESS_TOKEN - Value:
[YOUR_COMFYUI_REGISTRY_TOKEN_HERE] - Click Add secret
2. Verify Branch Configuration
The workflow is configured for the main branch, which matches your current setup.
3. Test the Publishing
To publish a new version:
- Update the
versionfield inpyproject.toml(currently 1.2.0) - Commit and push the changes to your main branch
- The GitHub Action will automatically trigger and publish the new version
- You can also trigger it manually from the Actions tab using "workflow_dispatch"
How It Works
The action triggers when:
- A push is made to the main branch AND the
pyproject.tomlfile is modified - You manually trigger it from the Actions tab
The workflow uses the official Comfy-Org/publish-node-action@main which:
- Reads your
pyproject.tomlconfiguration - Validates the custom node structure
- Publishes to the ComfyUI Registry using your API token
- Makes it available in ComfyUI Manager
Current Configuration
- Package Name: comfyui-niutonian-themes
- Current Version: 1.2.0
- Publisher: @Niutonian
- Repository: https://github.com/Niutonian/ComfyUI-Niutonian-Themes
- Registry URL: https://registry.comfy.org/publishers/Niutonian/nodes/comfyui-niutonian-themes
Troubleshooting
- Action fails: Check the Actions tab in your GitHub repository for error logs
- Authentication issues: Verify your
REGISTRY_ACCESS_TOKENsecret is correctly set - Version conflicts: Make sure you're incrementing the version number in
pyproject.toml - Metadata issues: Ensure your
pyproject.tomlhas all required ComfyUI fields
Manual Publishing Alternative
You can also publish manually using the ComfyUI CLI:
# Install comfy-cli if not already installed
pip install comfy-cli
# Publish manually
comfy node publish
# Enter your API key when prompted