From c05dd5cb65c2e9f21680c5307b0aed25c5204e56 Mon Sep 17 00:00:00 2001 From: Devansh Arora <68769374+ART3MISTICAL@users.noreply.github.com> Date: Sat, 14 Oct 2023 19:02:26 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd74056..46adb7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,26 +1,29 @@ +name: Build with PyInstaller for Windows -name: Package Application with Pyinstaller - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push] jobs: build: - - runs-on: ubuntu-latest + runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - - name: Package Application - uses: JackMcKew/pyinstaller-action-windows@main + - name: Set up Python + uses: actions/setup-python@v2 with: - path: / + python-version: 3.x + + - name: Install dependencies + run: pip install pyinstaller pyqt6 + + - name: Build with PyInstaller + run: pyinstaller --onefile main.py + working-directory: ${{ github.workspace }} - - uses: actions/upload-artifact@v2 + - name: Upload executable + uses: actions/upload-artifact@v2 with: name: color_palette - path: /main.py + path: dist/main.exe