Skip to content

Commit e102e7f

Browse files
committed
chore: update publish workflow to trigger on version tags and automate version extraction for pyproject.toml
1 parent 5ed5f13 commit e102e7f

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ on:
33
workflow_dispatch:
44
push:
55
tags:
6-
- "v*"
7-
paths:
8-
- "pyproject.toml"
6+
- "v*.*.*"
97

108
permissions:
119
issues: write
@@ -20,22 +18,6 @@ jobs:
2018
with:
2119
submodules: true
2220

23-
- name: Extract version from tag
24-
id: get_version
25-
run: |
26-
echo "TAG_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
27-
28-
- name: Update pyproject.toml version (not committed)
29-
run: |
30-
echo "Current pyproject.toml content:"
31-
cat pyproject.toml
32-
echo "TAG_VERSION: ${TAG_VERSION}"
33-
34-
# 更可靠的 sed 命令
35-
sed -i "s/version = \"[^\"]*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
36-
37-
echo "Updated pyproject.toml content:"
38-
cat pyproject.toml
3921
- name: Publish Custom Node
4022
uses: Comfy-Org/publish-node-action@v1
4123
with:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
name = "lightx2vwrapper"
33
description = "ComfyUI-Lightx2vWrapper is an inference wrapper for Lightx2v designed for use with ComfyUI."
44
version = "1.0.0"
5-
license = {file = "LICENSE"}
5+
license = { file = "LICENSE" }
66

77
[project.urls]
8-
Repository = "https://github.com/GACLove/ComfyUI-Lightx2vWrapper"
8+
Repository = "https://github.com/ModelTC/ComfyUI-Lightx2vWrapper"
99
# Used by Comfy Registry https://comfyregistry.org
1010

1111
[tool.comfy]

0 commit comments

Comments
 (0)