File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ name: Publish to Comfy registry
22on :
33 workflow_dispatch :
44 push :
5- branches :
6- - main
7- - master
5+ tags :
6+ - " v*"
87 paths :
98 - " pyproject.toml"
109
@@ -15,14 +14,22 @@ jobs:
1514 publish-node :
1615 name : Publish Custom Node to registry
1716 runs-on : ubuntu-latest
18- if : ${{ github.repository_owner == 'GACLove' }}
1917 steps :
2018 - name : Check out code
2119 uses : actions/checkout@v4
2220 with :
2321 submodules : true
22+
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+ sed -i "s/^version = \".*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
31+
2432 - name : Publish Custom Node
2533 uses : Comfy-Org/publish-node-action@v1
2634 with :
27- # # Add your own personal access token to your Github Repository secrets and reference it here.
2835 personal_access_token : ${{ secrets.REGISTRY_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments