From 14bbff48da9bef94a402281efee7833030034143 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 23 Aug 2024 20:31:31 -0500 Subject: [PATCH] Try to label generated executables with version number --- .github/workflows/create-executables.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-executables.yml b/.github/workflows/create-executables.yml index e36d3f7..8b19033 100644 --- a/.github/workflows/create-executables.yml +++ b/.github/workflows/create-executables.yml @@ -13,23 +13,39 @@ jobs: pyinstaller-build-windows: runs-on: windows-latest 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) uses: sayyid5416/pyinstaller@v1 with: python_ver: '3.11' + python_arch: 'x64' spec: 'main.spec' requirements: 'requirements.txt' - upload_exe_with_name: 'zordon-windows' + upload_exe_with_name: 'Zordon-${{env.VERSION}}-windows-x64' pyinstaller-build-linux: runs-on: ubuntu-latest 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) uses: sayyid5416/pyinstaller@v1 with: python_ver: '3.11' + python_arch: 'x64' spec: 'main.spec' requirements: 'requirements.txt' - upload_exe_with_name: 'zordon-linux' + upload_exe_with_name: 'Zordon-${{env.VERSION}}-linux-x64' # pyinstaller-build-macos: # runs-on: macos-latest # steps: