From 6189bb2ed67c80cbcfa45961212209cd78301fe7 Mon Sep 17 00:00:00 2001 From: "George L. Albany" Date: Mon, 18 Oct 2021 15:49:02 -0400 Subject: [PATCH 1/2] Added upload-linux-installer-binary release action --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5e7aa04..4354c2df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: Checkout Extra Libraries uses: actions/checkout@v2 with: @@ -57,10 +57,10 @@ jobs: uses: actions/setup-python@v2.2.2 with: python-version: '3.9' - + - name: Install PyInstaller run: python -m pip install pyinstaller requests - + - name: Build Installer EXE run: | cd PathfinderInstaller @@ -74,4 +74,35 @@ jobs: Release/Pathfinder.Release.zip PathfinderInstaller/dist/PathfinderInstaller.exe PathfinderInstaller/PathfinderInstaller.py - + + upload-linux-installer-binary: + + needs: Build-Windows + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2.2.2 + with: + python-version: '3.9' + + - name: Install PyInstaller + run: python -m pip install pyinstaller requests + + - name: Build Linux Installer Binary + run: | + cd PathfinderInstaller + pyinstaller --onefile --noconsole PathfinderInstaller.py + mv ./dist/PathfinderInstaller ./dist/PathfinderInstaller.x86_64 + chmod +x ./dist/PathfinderInstaller.x86_64 + cd .. + + - name: Upload Linux Installer Binary + uses: alexellis/upload-assets@0.2.2 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + asset_paths: '["./PathfinderInstaller/dist/PathfinderInstaller.x86_64"]' + From 9104d9208bfeeae39943c69fe7a0355b7835d37b Mon Sep 17 00:00:00 2001 From: "George L. Albany" Date: Tue, 3 May 2022 22:37:56 +0000 Subject: [PATCH 2/2] Correct build names to properly run --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4354c2df..13a2f477 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - "v*.*.*" jobs: - build: + build-windows: runs-on: windows-latest @@ -77,7 +77,7 @@ jobs: upload-linux-installer-binary: - needs: Build-Windows + needs: build-windows runs-on: ubuntu-latest steps: