Try to label generated executables with version number

This commit is contained in:
2024-08-23 20:31:31 -05:00
committed by GitHub
parent 75cd12803f
commit 14bbff48da

View File

@@ -13,23 +13,39 @@ jobs:
pyinstaller-build-windows: pyinstaller-build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract Version
id: get_version
run: |
version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
echo "VERSION=$version" >> $GITHUB_ENV
- name: Create Executables (Windows) - name: Create Executables (Windows)
uses: sayyid5416/pyinstaller@v1 uses: sayyid5416/pyinstaller@v1
with: with:
python_ver: '3.11' python_ver: '3.11'
python_arch: 'x64'
spec: 'main.spec' spec: 'main.spec'
requirements: 'requirements.txt' requirements: 'requirements.txt'
upload_exe_with_name: 'zordon-windows' upload_exe_with_name: 'Zordon-${{env.VERSION}}-windows-x64'
pyinstaller-build-linux: pyinstaller-build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract Version
id: get_version
run: |
version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
echo "VERSION=$version" >> $GITHUB_ENV
- name: Create Executables (Linux) - name: Create Executables (Linux)
uses: sayyid5416/pyinstaller@v1 uses: sayyid5416/pyinstaller@v1
with: with:
python_ver: '3.11' python_ver: '3.11'
python_arch: 'x64'
spec: 'main.spec' spec: 'main.spec'
requirements: 'requirements.txt' requirements: 'requirements.txt'
upload_exe_with_name: 'zordon-linux' upload_exe_with_name: 'Zordon-${{env.VERSION}}-linux-x64'
# pyinstaller-build-macos: # pyinstaller-build-macos:
# runs-on: macos-latest # runs-on: macos-latest
# steps: # steps: