This commit adds a new GitHub Action (publish-node-action) that will run whenever the pyproject.toml file changes. The action publishes the custom node version to the Comfy Registry. This setup includes: - Triggering the action on changes to the pyproject.toml file in the main or master branches. - Checking out the code using actions/checkout@v4. - Using the Comfy-Org/publish-node-action@main to publish the custom node. - Requires the addition of a REGISTRY_ACCESS_TOKEN secret in the GitHub repository settings.
22 lines
476 B
YAML
22 lines
476 B
YAML
name: Publish to Comfy registry
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
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 }}
|