Skip to content

Commit 33f04a7

Browse files
feat: add GitHub Actions workflow to build Windows executable
1 parent 755655d commit 33f04a7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/windows-exe.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Windows executable
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["main"]
7+
tags: ["v*"]
8+
9+
jobs:
10+
build-windows-exe:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install dependencies
23+
shell: pwsh
24+
run: |
25+
python -m pip install --upgrade pip
26+
if (Test-Path "requirements.txt") {
27+
pip install -r requirements.txt
28+
}
29+
pip install pyinstaller
30+
31+
- name: Build executable
32+
shell: pwsh
33+
run: |
34+
pyinstaller --onefile --windowed main.py --name ist-fenix-auto-enroller
35+
36+
- name: Upload artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: ist-fenix-auto-enroller-windows
40+
path: dist/ist-fenix-auto-enroller.exe

0 commit comments

Comments
 (0)