File tree Expand file tree Collapse file tree 1 file changed +7
-20
lines changed
Expand file tree Collapse file tree 1 file changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -119,37 +119,24 @@ See it here: https://registry.comfy.org/publisherId/your-node
119119``` bash
120120name: Publish to Comfy registry
121121on:
122+ workflow_dispatch:
122123 push:
123- branches: [main]
124+ branches:
125+ - main
124126 paths:
125127 - " pyproject.toml"
126- workflow_dispatch:
127128
128129jobs:
129130 publish-node:
131+ name: Publish Custom Node to registry
130132 runs-on: ubuntu-latest
131133 steps:
132- - uses: actions/checkout@v4
133-
134- - name: Detect version change
135- id: version_check
136- run: |
137- set -e
138- OLD_VERSION=$( git show HEAD^:pyproject.toml 2> /dev/null | grep ' ^version' | sed ' s/.*"//' | sed ' s/".*//' )
139- NEW_VERSION=$( grep ' ^version' pyproject.toml | sed ' s/.*"//' | sed ' s/".*//' )
140- echo " old=${OLD_VERSION} "
141- echo " new=${NEW_VERSION} "
142- if [ " $OLD_VERSION " != " $NEW_VERSION " ]; then
143- echo " changed=true" >> $GITHUB_OUTPUT
144- else
145- echo " changed=false" >> $GITHUB_OUTPUT
146- fi
147-
134+ - name: Check out code
135+ uses: actions/checkout@v4
148136 - name: Publish Custom Node
149- if: steps.version_check.outputs.changed == ' true'
150137 uses: Comfy-Org/publish-node-action@main
151138 with:
152- personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN } }
139+ personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN } } # # Add your own personal access token to your Github Repository secrets and reference it here.
153140```
154141
155142<Warning >
You can’t perform that action at this time.
0 commit comments