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.
This commit is contained in:
@@ -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 }}
|
||||
@@ -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 = ""
|
||||
Reference in New Issue
Block a user