Skip to content

feat: add GitHub Actions workflow to build Windows executable #1

feat: add GitHub Actions workflow to build Windows executable

feat: add GitHub Actions workflow to build Windows executable #1

Workflow file for this run

name: Build Windows executable
on:
workflow_dispatch:
push:
branches: ["main"]
tags: ["v*"]
jobs:
build-windows-exe:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
shell: pwsh
run: |
python -m pip install --upgrade pip
if (Test-Path "requirements.txt") {
pip install -r requirements.txt
}
pip install pyinstaller
- name: Build executable
shell: pwsh
run: |
pyinstaller --onefile --windowed main.py --name ist-fenix-auto-enroller
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ist-fenix-auto-enroller-windows
path: dist/ist-fenix-auto-enroller.exe