mirror of
https://github.com/rookiestar28/ComfyUI-OpenClaw.git
synced 2026-08-14 00:48:07 +00:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Publish to Comfy registry
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
paths:
|
|
- "pyproject.toml"
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
|
|
jobs:
|
|
publish-node:
|
|
name: Publish Custom Node to registry
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'rookiestar28' }}
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 2
|
|
submodules: true
|
|
- name: Evaluate registry publish guard
|
|
id: publish_guard
|
|
run: |
|
|
python scripts/registry_publish_guard.py --pyproject pyproject.toml --previous-ref HEAD^ --github-output "$GITHUB_OUTPUT"
|
|
- name: Skip registry publish when version is unchanged
|
|
if: steps.publish_guard.outputs.should_publish != 'true'
|
|
run: |
|
|
echo "Skipping registry publish because pyproject version is unchanged."
|
|
- name: Publish Custom Node
|
|
if: steps.publish_guard.outputs.should_publish == 'true'
|
|
uses: Comfy-Org/publish-node-action@d2366e7abb6ab16f3bb03e3520ae25c8cf749bc9
|
|
with:
|
|
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|