Skip to content

fix: release

fix: release #4

Workflow file for this run

name: Build and Auto-Release EXE
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build EXE with PyInstaller
run: pyinstaller --onefile gui.py
- name: Wait for EXE and Move
shell: pwsh
run: |
while (-not (Test-Path "dist/gui.exe")) { Start-Sleep -Seconds 1 }
mv dist/gui.exe gui.exe -Force
- name: Cleanup Unwanted Files
shell: pwsh
run: |
Remove-Item -Recurse -Force build, dist, gui.spec
- name: Upload EXE as Artifact
uses: actions/upload-artifact@v4
with:
name: built-exe
path: gui.exe