Skip to content

Commit 47a160c

Browse files
committed
Update README, fix publish
1 parent 4d3eb3d commit 47a160c

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,42 @@ permissions:
1010
issues: write
1111

1212
jobs:
13-
publish-node:
14-
name: Publish Custom Node to registry
13+
check-version:
14+
name: Check version requirements
1515
runs-on: ubuntu-latest
16+
if: ${{ github.repository_owner == 'Kidev' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') }}
17+
outputs:
18+
should_publish: ${{ steps.check.outputs.should_publish }}
1619
steps:
1720
- name: Check out code
1821
uses: actions/checkout@v4
19-
with:
20-
submodules: true
2122

22-
- name: Get version from pyproject.toml
23-
id: get_version
23+
- name: Compare versions
24+
id: check
2425
run: |
2526
VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
26-
echo "version=$VERSION" >> $GITHUB_OUTPUT
27+
TAG=${GITHUB_REF#refs/tags/v}
28+
if [ "$TAG" = "$VERSION" ]; then
29+
echo "should_publish=true" >> $GITHUB_OUTPUT
30+
echo "Versions match ($VERSION), will proceed with publish"
31+
else
32+
echo "should_publish=false" >> $GITHUB_OUTPUT
33+
echo "Tag version ($TAG) does not match pyproject.toml version ($VERSION), skipping publish"
34+
fi
2735
28-
- name: Check version matches tag
29-
if: |
30-
github.repository_owner == 'Kidev' &&
31-
github.ref_type == 'tag' &&
32-
github.ref_name == format('v{0}', steps.get_version.outputs.version)
33-
run: echo "Version matches tag, proceeding with publish"
36+
publish-node:
37+
name: Publish Custom Node to registry
38+
needs: check-version
39+
if: ${{ needs.check-version.outputs.should_publish == 'true' }}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Check out code
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: true
46+
fetch-tags: true
3447

3548
- name: Publish Custom Node
36-
if: success()
3749
uses: Comfy-Org/publish-node-action@v1
3850
with:
3951
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Provides tools for applying and removing fisheye lens effects from images.
44

5+
![Example](examples/CircularGrid.png)
6+
57
## Features
68

79
- FisheyeNode: Apply fisheye distortion to images

0 commit comments

Comments
 (0)