pyproject publish

This commit is contained in:
RiceRound
2025-02-20 15:17:27 +08:00
parent 3300cb64e6
commit f210ad600f
3 changed files with 22 additions and 30 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "pyproject.toml"
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 }}
+2 -2
View File
@@ -1,13 +1,13 @@
[project]
name = "comfyui_riceround"
description = "A tool for generating encrypted workflows and commercializing AI nodes for ComfyUI."
description = "This is an imaginative project that allows for one-click deployment, providing both an online page and a ComfyUI cloud node."
version = "1.0.0"
license = {file = "LICENSE"}
dependencies = ["aiohttp", "pyzipper", "websockets", "portalocker", "tomlkit"]
[project.urls]
Repository = "https://github.com/RiceRound/ComfyUI_RiceRound"
# Used by Comfy Registry https://comfyregistry.org
[tool.comfy]
PublisherId = "riceround"
-28
View File
@@ -1,28 +0,0 @@
name: Publish Node to Comfy Registry
on:
push:
branches:
- main # 触发工作流的分支,确保是你的默认分支
paths:
- "pyproject.toml" # 仅当 pyproject.toml 文件发生变化时触发工作流
jobs:
publish-node:
runs-on: ubuntu-latest # 在 Ubuntu 上运行
steps:
- name: Check out code
uses: actions/checkout@v2 # 获取 GitHub 仓库的代码
- name: Set up Python
uses: actions/setup-python@v2 # 设置 Python 环境
with:
python-version: 3.9 # 设置 Python 版本,确保与你的项目兼容
- name: Install comfy-cli
run: pip install comfy-cli # 安装 comfy-cli
- name: Publish Node
run: comfy node publish # 运行发布命令
env:
API_KEY: ${{ secrets.REGISTRY_ACCESS_TOKEN }} # 从 GitHub Secrets 中读取并传递 API Key