- Updated the render function to accept an optional outputSlot parameter. - Modified renderNode to handle output slots and gather input information. - Introduced RenderInputInfo interface to encapsulate details about each input. - Added logic to create placeholder canvases for missing upstream nodes. - Updated signature function to include outputSlot in cache key. ci: add nightly build and stable release workflows - Created nightly.yml for automated nightly builds and uploads to GitHub. - Added release-on-tag.yml for creating stable releases on version tags. - Implemented steps to create zip archives excluding unnecessary files. - Configured GitHub Actions to publish releases and custom nodes to the registry.
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: Publish to Comfy registry
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
paths:
|
|
- "pyproject.toml"
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
quality:
|
|
name: Quality Gate
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
|
|
- name: Python compile smoke
|
|
run: |
|
|
python -m compileall __init__.py nodes tests
|
|
|
|
- name: Install JS dependencies
|
|
run: npm ci
|
|
|
|
- name: Typecheck and build frontend
|
|
run: |
|
|
npm run check
|
|
npm run build
|
|
|
|
- name: Verify built js is committed
|
|
run: |
|
|
git diff --exit-code js/ || (echo "::error::js/ is out of date - run 'npm run build' and commit the result" && exit 1)
|
|
|
|
publish-node:
|
|
name: Publish Custom Node to registry
|
|
runs-on: ubuntu-latest
|
|
needs: quality
|
|
permissions:
|
|
contents: read
|
|
if: ${{ github.repository_owner == 'MajoorWaldi' }}
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
submodules: true
|
|
- 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 }}
|