File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments