-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1019 Bytes
/
release-build.yml
File metadata and controls
35 lines (28 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Executable
on:
release:
types: [created]
jobs:
build:
runs-on: windows-latest # Verwende Windows-Runner, um eine Windows .exe zu erstellen
steps:
# Check out the repository
- name: Checkout repository
uses: actions/checkout@v4
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10' # Stelle sicher, dass die richtige Python-Version verwendet wird
# Install PyInstaller
- name: Install PyInstaller
run: pip install pyinstaller
# Build .exe using PyInstaller
- name: Build .exe using PyInstaller
run: pyinstaller --onefile --noconsole calculator.py
# Upload the .exe file as an artifact to GitHub
- name: Upload artifact
uses: actions/upload-artifact@v4 # Verwende die neueste Version der action
with:
name: calculator-exe
path: dist/calculator.exe # Pfad zur erstellten .exe Datei