diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 545a7eae..3570a6b0 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,3 +77,33 @@ jobs: 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"]' \ No newline at end of file