Updated publish_action

This commit is contained in:
bcasadei
2026-01-07 17:34:10 -07:00
parent ce95bc6c36
commit 2e0c2bfd9a
2 changed files with 8 additions and 86 deletions
+4 -14
View File
@@ -9,22 +9,12 @@ on:
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@master
with:
python-version: "3.10"
- name: Install comfy-cli
run: pip install comfy-cli
- name: Publish to Comfy Registry
env:
COMFY_API_KEY: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
COMFY_TRACKING: "false"
run: |
echo "n" | comfy node publish --path .
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.
+4 -72
View File
@@ -1,86 +1,18 @@
[build-system]
requires = ["setuptools>=70.0"]
build-backend = "setuptools.build_meta"
# pyproject.toml
[project]
name = "comfyui_prompt_camera_assistant"
version = "0.0.1"
name = "comfyui_prompt_camera_assistant" # Unique identifier for your node. Immutable after creation.
description = "Prompt camera assistant for adding camera details to prompts."
authors = [
{name = "Bill Casadei"}
]
readme = "README.md"
version = "1.0.0" # Custom Node version. Must be semantically versioned.
license = {text = "MIT license"}
requires-python = ">=3.10"
classifiers = []
dependencies = [
]
[project.optional-dependencies]
dev = [
"bump-my-version",
"coverage", # testing
"mypy", # linting
"pre-commit", # runs linting on commit
"pytest", # testing
"ruff", # linting
]
dependencies = [] # Filled in from requirements.txt
[project.urls]
Repository = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant"
BugTracker = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant/issues"
Documentation = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant/wiki"
[tool.comfy]
PublisherId = "bcasadei"
DisplayName = "Prompt Camera Assistant"
Icon = ""
Tags = []
Repository = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant"
includes = []
[tool.setuptools.package-data]
"*" = ["*.*"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
]
[tool.mypy]
files = "."
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
allow_untyped_defs = true
disable_error_code = "attr-defined"
[tool.ruff]
# extend-exclude = ["static", "ci/templates"]
line-length = 140
src = ["src", "tests"]
target-version = "py39"
# Add rules to ban exec/eval
[tool.ruff.lint]
select = [
"S102", # exec-builtin
"S307", # eval-used
"W293",
"F", # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names.
# See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"