diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml new file mode 100644 index 0000000..d89ef1a --- /dev/null +++ b/.github/workflows/publish_action.yml @@ -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 }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index bcb460b..906c914 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/workflow/publish-node.yml b/workflow/publish-node.yml deleted file mode 100644 index 46b1a89..0000000 --- a/workflow/publish-node.yml +++ /dev/null @@ -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 \ No newline at end of file