From d52e78eb5e4042bd60c62e6761f724f36ae0e6d7 Mon Sep 17 00:00:00 2001 From: rambros Date: Sat, 21 Mar 2026 01:42:42 +0530 Subject: [PATCH] fix version display in github releases --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 027b7f1..4d9ef69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,12 +41,21 @@ jobs: pip install pyinstaller Pillow + - name: Bake Version + shell: bash + run: | + GIT_VERSION=${GITHUB_REF_NAME:-$(git describe --tags --abbrev=0 2>/dev/null || echo "Unknown")} + echo "Baking version: $GIT_VERSION" + echo "__version__ = \"$GIT_VERSION\"" > src/core/_baked_version.py + - name: Build with PyInstaller run: | - echo "Listing directory contents:" - ls -R || dir /s pyinstaller disco-reaper.spec + - name: Clean up Baked Version + shell: bash + run: rm -f src/core/_baked_version.py + - name: Prepare Release Asset (Linux/MacOS) if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' run: |