fix: update workflow

This commit is contained in:
GACLove
2025-07-16 19:01:39 +08:00
parent 6afe864a15
commit 433315f4a1
+12 -5
View File
@@ -2,9 +2,8 @@ name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
- master
tags:
- "v*"
paths:
- "pyproject.toml"
@@ -15,14 +14,22 @@ jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'GACLove' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true
- name: Extract version from tag
id: get_version
run: |
echo "TAG_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Update pyproject.toml version (not committed)
run: |
sed -i "s/^version = \".*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
- 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 }}