fix version display in github releases

This commit is contained in:
rambros 2026-03-21 01:42:42 +05:30
parent ea297da0c8
commit d52e78eb5e

View file

@ -41,12 +41,21 @@ jobs:
pip install pyinstaller Pillow 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 - name: Build with PyInstaller
run: | run: |
echo "Listing directory contents:"
ls -R || dir /s
pyinstaller disco-reaper.spec 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) - name: Prepare Release Asset (Linux/MacOS)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: | run: |