diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml index d89ef1a..01752a5 100644 --- a/.github/workflows/publish_action.yml +++ b/.github/workflows/publish_action.yml @@ -1,4 +1,5 @@ -name: Publish to Comfy registry +name: Publish to Comfy registry & GitHub Release + on: workflow_dispatch: push: @@ -11,10 +12,31 @@ jobs: publish-node: name: Publish Custom Node to registry runs-on: ubuntu-latest + permissions: + contents: write # Gives GitHub permission to create tags & releases + steps: - name: Check out code uses: actions/checkout@v4 + - name: Publish Custom Node uses: Comfy-Org/publish-node-action@main with: - personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} \ No newline at end of file + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + + # 1. Read version string from pyproject.toml + - name: Extract Version + id: get_version + run: | + VERSION=$(grep -m 1 'version' pyproject.toml | cut -d '"' -f 2) + echo "VERSION=$VERSION" >> $GITHUB_ENV + + # 2. Automatically create Git Tag & GitHub Release + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ env.VERSION }} + name: v${{ env.VERSION }} + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 191346b..573dbdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfy-sidebar" description = "A custom queue sidebar and image comparison extension that reintroduces and improves a sidebar queue menu and unified compact topbar layout for ComfyUI." -version = "1.2.8" +version = "1.2.9" license = { file = "LICENSE" } dependencies = []