Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devansharora18 authored Oct 14, 2023
1 parent 96d2872 commit c05dd5c
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c05dd5c

Please sign in to comment.