maepopi / Diffusers-in-ComfyUI

This is a custom node allowing the use of the diffusers pipeline into ComfyUI. Available through ComfyUI Manager and Comfy Registry.
MIT License
3 stars 2 forks source link

Add Github Action for Publishing to Comfy Registry #2

Closed robinjhuang closed 1 month ago

robinjhuang commented 1 month ago

This PR adds a Github Action (publish-node-action) that will publish an updated version of your custom node to the registry whenever the pyproject.toml file changes. The pyproject.toml defines the custom node version you want to publish (added in another PR).

Action Required:

Please message me on Discord at robinken or join our server server if you have any questions!

Summary by Sourcery

Introduce a GitHub Action to automate publishing custom nodes to the Comfy registry upon changes to the pyproject.toml file on specified branches.

CI:

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request adds a GitHub Action workflow to automatically publish custom nodes to the Comfy Registry when the pyproject.toml file is updated. The workflow is triggered on pushes to the main or master branch that modify the pyproject.toml file, and it uses a custom action to handle the publishing process.

File-Level Changes

Change Details Files
Add GitHub Actions workflow for publishing to Comfy Registry
  • Define workflow name and trigger conditions
  • Set up job to run on ubuntu-latest
  • Add condition to skip workflow on forked repositories
  • Use actions/checkout to fetch repository code
  • Implement custom publish-node-action for publishing to Comfy Registry
  • Use REGISTRY_ACCESS_TOKEN secret for authentication
.github/workflows/publish.yml

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.