The registry's Updates section was empty for every version because the publish workflow never passed a changelog. comfy-cli reads COMFY_NODE_CHANGELOG, so the workflow now builds it from the version's CHANGELOG.md section. The registry shows it as one plain paragraph (no Markdown), so the script keeps the first column of each table row. Releases also date that CHANGELOG section and get an annotated vX.Y.Z tag; CLAUDE.md and /version-bump describe the steps.
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Publish to Comfy registry
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
paths:
|
|
- "pyproject.toml"
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
publish-node:
|
|
name: Publish Custom Node to registry
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'gelasdev' }}
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
# comfy-cli sends $COMFY_NODE_CHANGELOG as the version's changelog (the registry's "Updates" section)
|
|
- name: Build registry changelog from CHANGELOG.md
|
|
run: |
|
|
{
|
|
echo "COMFY_NODE_CHANGELOG<<CHANGELOG_EOF"
|
|
python3 .github/scripts/registry_changelog.py
|
|
echo "CHANGELOG_EOF"
|
|
} >> "$GITHUB_ENV"
|
|
- name: Publish Custom Node
|
|
uses: Comfy-Org/publish-node-action@v1
|
|
with:
|
|
## Add your own personal access token to your Github Repository secrets and reference it here.
|
|
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|