Files
MajoorWaldi-ComfyUI-Majoor-…/.github/workflows/publish.yml
T
2026-04-15 15:54:54 +02:00

54 lines
1.6 KiB
YAML

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio
- name: Run tests
run: python -m pytest -q
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@v6 # v4.0.2
with:
submodules: false
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@v1 # 1.0.1
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}