@@ -11,50 +11,98 @@ jobs:
1111 name : Build for Windows
1212
1313 steps :
14- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.10'
20+
21+ - name : Install dependencies
22+ run : |
23+ pip install pyinstaller==6.3.0
24+ pip install -r requirements.txt
1525
1626 - name : Create Executable
17- uses : sayyid5416/pyinstaller@v1.4.0
27+ run : pyinstaller --onefile --name "Produkte-Generator" main.py
28+
29+ - name : Upload Artifact
30+ uses : actions/upload-artifact@v4
1831 with :
19- python_ver : ' 3.10'
20- pyinstaller_ver : ' ==6.3.0'
21- spec : ' main.py'
22- requirements : ' requirements.txt'
23- upload_exe_with_name : ' Produkte Generator (Windows)'
24- options : --onefile, --name "Produkte-Generator"
32+ name : ' Produkte Generator (Windows)'
33+ path : ' dist/'
2534
2635 build_linux :
2736 runs-on : ubuntu-latest
2837 name : Build for Linux
2938
3039 steps :
31- - uses : actions/checkout@v3
40+ - uses : actions/checkout@v4
41+
42+ - name : Set up Python
43+ uses : actions/setup-python@v5
44+ with :
45+ python-version : ' 3.10'
46+
47+ - name : Install dependencies
48+ run : |
49+ pip install pyinstaller==6.3.0
50+ pip install -r requirements.txt
51+
52+ - name : Create Executable
53+ run : pyinstaller --onefile --name "Produkte-Generator" main.py
54+
55+ - name : Upload Artifact
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : ' Produkte Generator (Linux)'
59+ path : ' dist/'
60+
61+ build_macos :
62+ runs-on : macos-latest
63+ name : Build for macOS
64+
65+ steps :
66+ - uses : actions/checkout@v4
67+
68+ - name : Set up Python
69+ uses : actions/setup-python@v5
70+ with :
71+ python-version : ' 3.10'
72+
73+ - name : Install dependencies
74+ run : |
75+ pip install pyinstaller==6.3.0
76+ pip install -r requirements.txt
3277
3378 - name : Create Executable
34- uses : sayyid5416/pyinstaller@v1.4.0
79+ run : pyinstaller --onefile --name "Produkte-Generator" main.py
80+
81+ - name : Upload Artifact
82+ uses : actions/upload-artifact@v4
3583 with :
36- python_ver : ' 3.10'
37- pyinstaller_ver : ' ==6.3.0'
38- spec : ' main.py'
39- requirements : ' requirements.txt'
40- upload_exe_with_name : ' Produkte Generator (Linux)'
41- options : --onefile, --name "Produkte-Generator"
84+ name : ' Produkte Generator (macOS)'
85+ path : ' dist/'
4286
4387 publish :
4488 if : startsWith(github.ref, 'refs/tags/')
45- needs : [build_windows, build_linux]
89+ needs : [build_windows, build_linux, build_macos ]
4690 name : Publish Executables
4791 runs-on : ubuntu-latest
4892
4993 steps :
50- - uses : actions/download-artifact@v2
94+ - uses : actions/download-artifact@v4
5195 with :
5296 name : ' Produkte Generator (Windows)'
5397 path : ' artifacts'
54- - uses : actions/download-artifact@v2
98+ - uses : actions/download-artifact@v4
5599 with :
56100 name : ' Produkte Generator (Linux)'
57101 path : ' artifacts'
102+ - uses : actions/download-artifact@v4
103+ with :
104+ name : ' Produkte Generator (macOS)'
105+ path : ' artifacts'
58106
59107 - name : Upload artifacts to release
60108 uses : svenstaro/upload-release-action@v2
63111 file : artifacts/*
64112 file_glob : true
65113 tag : ${{ github.ref }}
66- overwrite : true
114+ overwrite : true
0 commit comments