mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Converted the publish workflow from a job-based GitHub Actions workflow to a reusable composite action. Added inputs for personal access token and skip_checkout, included Python setup and comfy-cli installation steps, and updated the publish command to use the new structure.
29 lines
874 B
YAML
29 lines
874 B
YAML
name: "Publish To Registry"
|
|
description: "Publish Custom Nodes to Registry."
|
|
inputs:
|
|
personal_access_token:
|
|
description: "Personal Access Token for authenticating to the Registry"
|
|
required: true
|
|
skip_checkout:
|
|
description: "Whether to skip the checkout step (true/false)"
|
|
required: false
|
|
default: 'false'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Checkout Custom Node Repository
|
|
uses: actions/checkout@v4
|
|
if: ${{ inputs.skip_checkout != 'true' }}
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install comfy-cli
|
|
shell: bash
|
|
run: |
|
|
pip install comfy-cli
|
|
- name: Publish Node
|
|
shell: bash
|
|
run: |
|
|
comfy --skip-prompt --no-enable-telemetry env
|
|
comfy node publish --token ${{ secrets.REGISTRY_ACCESS_TOKEN }} |