Skip to content

Commit 2c88a38

Browse files
authored
Merge pull request #670 from AnvithLobo/master
Fix windows release builds
2 parents a678a97 + 454ece1 commit 2c88a38

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/WinCompile.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,30 @@ name: Build and Upload LaZagne Release
22

33
on:
44
push:
5-
# Sequence of patterns matched against refs/tags
65
tags:
7-
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
- 'v*' # Matches tags like v1.0, v20.15.10
87

98
jobs:
109
build:
1110

12-
runs-on: ubuntu-latest
11+
runs-on: windows-latest
1312

1413
steps:
1514
- uses: actions/checkout@v2
1615

17-
- name: Build Application
18-
uses: JackMcKew/pyinstaller-action-windows@main
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v4
1918
with:
20-
path: Windows
21-
requirements: requirements.txt
19+
python-version: 3.11
20+
21+
- name: Install Dependencies
22+
run: |
23+
pip install -r requirements.txt
24+
25+
- name: Build Executable with PyInstaller
26+
run: |
27+
cd Windows
28+
pyinstaller lazagne.spec
2229
2330
- name: Create Release
2431
id: create_release
@@ -38,6 +45,6 @@ jobs:
3845
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3946
with:
4047
upload_url: ${{ steps.create_release.outputs.upload_url }}
41-
asset_path: Windows/dist/windows/lazagne.exe
48+
asset_path: Windows/dist/lazagne.exe
4249
asset_name: LaZagne.exe
4350
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)