Registry: send the changelog, fix the logo, fuller description

The publish workflow passes the version's CHANGELOG.md section to comfy-cli
(COMFY_NODE_CHANGELOG), icon.png is re-rendered from icon.svg at 512x512
with all four corners rounded, and the description covers the features.
This commit is contained in:
Edouard Durand
2026-09-26 07:25:07 +00:00
parent 2b1b3b11ce
commit 91f3383e86
4 changed files with 27 additions and 1 deletions
+23
View File
@@ -14,7 +14,30 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v7
- name: Changelog for this version
# comfy-cli sends COMFY_NODE_CHANGELOG as the version's changelog
# (the registry's Updates section): the matching CHANGELOG.md section.
run: |
version=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml | head -n1)
notes=$(awk -v v="$version" '
$0 ~ "^## " v "( |$)" { on = 1; next }
on && /^## / { exit }
on { print }
' CHANGELOG.md | sed -e '/./,$!d')
if [ -z "$notes" ]; then
echo "::warning::No CHANGELOG.md section for $version"
exit 0
fi
delimiter="EOF_$(date +%s%N)"
{
echo "COMFY_NODE_CHANGELOG<<$delimiter"
printf '%s\n' "$notes"
echo "$delimiter"
} >> "$GITHUB_ENV"
echo "Changelog for $version:"
printf '%s\n' "$notes"
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.
skip_checkout: "true"