From 84ff36c440b9f0083af599e7ef0e2a8a72d623a7 Mon Sep 17 00:00:00 2001 From: qbug Date: Sun, 13 Apr 2025 11:02:58 +0800 Subject: [PATCH] Add pyproject.toml and GitHub Actions workflow for publishing - Created pyproject.toml to define project metadata for comfyui-qbug-batch, including name, description, version, and repository URL. - Added GitHub Actions workflow file for automated publishing processes. --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ pyproject.toml | 14 ++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 pyproject.toml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..656cd82 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +permissions: + issues: write + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'Q-Bug4' }} + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@v1 + with: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4c2013b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "comfyui-qbug-batch" +description = "ComfyUI Batch Toolkit: Custom nodes that simplify batch operations and improve efficiency. ComfyUI批处理工具集:简化批处理操作,提高效率的自定义节点。" +version = "0.1.0" +license = {file = "LICENSE"} + +[project.urls] +Repository = "https://github.com/Q-Bug4/comfyui-qbug-batch" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "qbug" +DisplayName = "comfyui-qbug-batch" +Icon = "" \ No newline at end of file