Skip to content

Commit 1a9f234

Browse files
authored
Revert workflow changes
1 parent 536d541 commit 1a9f234

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

registry/publishing.mdx

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,24 @@ Copy the code below and paste it here `/.github/workflows/publish_action.yml`
115115
```bash
116116
name: Publish to Comfy registry
117117
on:
118+
workflow_dispatch:
118119
push:
119-
branches: [main]
120+
branches:
121+
- main
120122
paths:
121123
- "pyproject.toml"
122-
workflow_dispatch:
123124

124125
jobs:
125126
publish-node:
127+
name: Publish Custom Node to registry
126128
runs-on: ubuntu-latest
127129
steps:
128-
- uses: actions/checkout@v4
129-
130-
- name: Detect version change
131-
id: version_check
132-
run: |
133-
set -e
134-
OLD_VERSION=$(git show HEAD^:pyproject.toml 2>/dev/null | grep '^version' | sed 's/.*"//' | sed 's/".*//')
135-
NEW_VERSION=$(grep '^version' pyproject.toml | sed 's/.*"//' | sed 's/".*//')
136-
echo "old=${OLD_VERSION}"
137-
echo "new=${NEW_VERSION}"
138-
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
139-
echo "changed=true" >> $GITHUB_OUTPUT
140-
else
141-
echo "changed=false" >> $GITHUB_OUTPUT
142-
fi
143-
130+
- name: Check out code
131+
uses: actions/checkout@v4
144132
- name: Publish Custom Node
145-
if: steps.version_check.outputs.changed == 'true'
146133
uses: Comfy-Org/publish-node-action@main
147134
with:
148-
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
135+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.
149136
```
150137

151138
<Warning>If your working branch is named something besides `main`, such as `master`, add the name under the branches section.</Warning>

0 commit comments

Comments
 (0)