Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidev committed Jan 22, 2025
1 parent c88921e commit 6581b70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
- master
paths:
- "pyproject.toml"

permissions:
issues: write
Expand All @@ -15,14 +13,27 @@ jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Kidev' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true

- name: Get version from pyproject.toml
id: get_version
run: |
VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Check version matches tag
if: |
github.repository_owner == 'Kidev' &&
github.ref_type == 'tag' &&
github.ref_name == format('v{0}', steps.get_version.outputs.version)
run: echo "Version matches tag, proceeding with publish"

- name: Publish Custom Node
if: success()
uses: Comfy-Org/publish-node-action@v1
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "fisheye-effects"
description = "Provides tools for applying and removing fisheye lens effects from images."
version = "0.0.1"
version = "0.0.2"
license = {file = "LICENSE"}
dependencies = ["numpy>=1.22.0", "opencv-python>=4.8.0", "Pillow>=9.5.0"]

Expand Down

0 comments on commit 6581b70

Please sign in to comment.