From e924f0e83acc67fd99a366b087fbcbe4e1d8a97f Mon Sep 17 00:00:00 2001 From: dyamagishi Date: Wed, 2 Apr 2025 17:46:11 +0900 Subject: [PATCH] Add pyproject.toml and GitHub Actions workflow for publishing - Created a new `pyproject.toml` file to define project metadata and dependencies for the ComfyUI-CloudArchive. - Added a GitHub Actions workflow in `publish.yml` to automate the publishing process to the Comfy registry upon code pushes to the main branch or manual triggers. - The workflow includes steps for checking out the code and using a custom action to publish the node, requiring a personal access token for authentication. --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ pyproject.toml | 15 +++++++++++++++ 2 files changed, 36 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..828f300 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +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: + ## 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..8aeb654 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "comfyui-cloudarchive" +description = "Automatically archives generated files to Amazon S3 or S3-compatible storage services" +version = "1.0.0" +license = {file = "LICENSE"} +dependencies = ["boto3", "watchdog"] + +[project.urls] +Repository = "https://github.com/olduvai-jp/ComfyUI-CloudArchive" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "olduvai-jp" +DisplayName = "ComfyUI-CloudArchive" +Icon = ""