Skip to content

Commit

Permalink
rename upload and only upload latest python version
Browse files Browse the repository at this point in the history
  • Loading branch information
mwinkens committed May 15, 2024
1 parent 869704c commit b1c0e6d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11"]
python-version: ['3.10', '3.11']
architecture: ['x64']

steps:
- name: Checkout Repository
Expand All @@ -24,7 +25,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
architecture: ${{ matrix.architecture }}

- name: Install PyQt5
run: pip install -r requirements.txt
Expand All @@ -33,17 +34,17 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
pyinstaller -F src/viewer.py
mv dist/viewer dist/viewer_linux_${{ matrix.python-version }}
mv dist/viewer dist/viewer_linux_python_${{ matrix.python-version }}
- name: Build Executable for Windows
if: matrix.os == 'windows-latest'
run: |
pyinstaller -F src/viewer.py
mv dist/viewer.exe dist/viewer_windows${{ matrix.python-version }}.exe
mv dist/viewer.exe dist/viewer_win64_python${{ matrix.python-version }}.exe
- name: Upload Artifacts
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
if: matrix.python-version == '3.11'
uses: actions/upload-artifact@v4
with:
name: viewer_artifacts
name: simple_ddnet_automapper_${{ matrix.os }}${{ matrix.architecture }}_${{ matrix.python-version }}
path: dist/

0 comments on commit b1c0e6d

Please sign in to comment.