Skip to content

Commit 8f4152c

Browse files
Copilotmasilver99
andauthored
feat: add GitHub Actions workflow to build Windows EXE on every push
Agent-Logs-Url: https://github.com/masilver99/sierra-chart-tear-sheet/sessions/2de32610-779d-412d-97b5-83c7d63bd9a8 Co-authored-by: masilver99 <14352629+masilver99@users.noreply.github.com>
1 parent 723be09 commit 8f4152c

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Windows EXE
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
build-windows-exe:
13+
name: Build tearsheet.exe
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.11"
24+
cache: "pip"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
pip install pyinstaller
31+
32+
- name: Build EXE with PyInstaller
33+
run: |
34+
pyinstaller --onefile --name tearsheet --noconfirm tearsheet/__main__.py
35+
36+
- name: Upload EXE artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: tearsheet-windows-exe
40+
path: dist/tearsheet.exe
41+
if-no-files-found: error
42+
retention-days: 30

0 commit comments

Comments
 (0)