Fix os check for action

This commit is contained in:
MrTeferi
2022-11-21 20:34:41 -06:00
parent 5d2c266cc7
commit 6842f63f43
2 changed files with 11 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
include:
@@ -34,12 +35,15 @@ jobs:
- name: Build with PyInstaller
run: |
poetry run pyinstaller launcher.spec
- name: Upload artifact
- name: Upload artifact Windows
if: matrix.os == "windows-latest"
uses: actions/upload-artifact@v2
with:
path:
if matrix.os == "windows-latest":
./dist/launcher.exe
else:
./dist/launcher
path: ./dist/launcher.exe
name: CC Server (${{ matrix.TARGET }})
- name: Upload artifact macos
if: matrix.os != "windows-latest"
uses: actions/upload-artifact@v2
with:
path: ./dist/launcher
name: CC Server (${{ matrix.TARGET }})