Skip to content

Commit 40da719

Browse files
Add GitHub Actions workflow for Windows EXE build
1 parent 4e47e60 commit 40da719

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Windows EXE
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build-windows:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Check out repo
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pyinstaller
25+
26+
- name: Build EXE
27+
run: |
28+
pyinstaller --onefile your_script.py
29+
30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: my-windows-exe
34+
path: dist/your_script.exe

0 commit comments

Comments
 (0)