fix version display in github releases
This commit is contained in:
parent
ea297da0c8
commit
d52e78eb5e
1 changed files with 11 additions and 2 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue