From 9b177fdd207415bc608d8ddf2847060c2a1fd8a6 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Sat, 4 Jul 2026 20:09:11 +0200 Subject: [PATCH] chore(CI): update checkout versions and migrate publishing workflow to comfy-cli --- .github/workflows/ComfyUIdownloads.yml | 2 +- .github/workflows/clone.yml | 2 +- .github/workflows/publish.yml | 25 +++++++++++++++++++++---- .github/workflows/release.yml | 2 +- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ComfyUIdownloads.yml b/.github/workflows/ComfyUIdownloads.yml index 5ee8813..b93d971 100644 --- a/.github/workflows/ComfyUIdownloads.yml +++ b/.github/workflows/ComfyUIdownloads.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: gh login run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token diff --git a/.github/workflows/clone.yml b/.github/workflows/clone.yml index 936a3a4..f02c0eb 100644 --- a/.github/workflows/clone.yml +++ b/.github/workflows/clone.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: gh login run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 537b012..4da88a6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,9 +22,26 @@ jobs: if: ${{ github.repository == 'Azornes/Comfyui-Model-Resolver' }} steps: - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@v7 + + - name: Check registry token + env: + REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + run: | + if [ -z "$REGISTRY_ACCESS_TOKEN" ]; then + echo "::error title=Missing REGISTRY_ACCESS_TOKEN::Create a Comfy Registry publishing API key and add it as a repository secret named REGISTRY_ACCESS_TOKEN." + exit 1 + fi + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.10" + + - name: Install comfy-cli + run: python -m pip install --upgrade comfy-cli - name: Publish Custom Node - uses: Comfy-Org/publish-node-action@main - with: - personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + env: + REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + run: comfy --skip-prompt --no-enable-telemetry env comfy node publish --token "$REGISTRY_ACCESS_TOKEN" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd330c8..f0fa4b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0