Skip to content

Commit d29182a

Browse files
committed
Update build.yml
1 parent 1601016 commit d29182a

1 file changed

Lines changed: 25 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
# filepath: /home/thiago/Documentos/GitHub/CTkDesigner/.github/workflows/build.yml
21
name: Build & Release
32

43
on:
54
push:
65
tags:
7-
- 'v*' # Trigger solo en tags v1.0.0, v2.0.1, etc.
6+
- 'v*'
87

98
jobs:
109
build-linux:
1110
runs-on: ubuntu-latest
12-
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@v4
16-
14+
1715
- name: Set up Python
1816
uses: actions/setup-python@v5
1917
with:
2018
python-version: '3.11'
21-
19+
2220
- name: Install dependencies
2321
run: |
2422
python -m pip install --upgrade pip
2523
pip install -r requirements.txt
2624
pip install pyinstaller
27-
25+
2826
- name: Build with PyInstaller
2927
run: |
30-
pyinstaller --onefile pyinstaller.spec
28+
pyinstaller pyinstaller.spec
29+
30+
- name: Package artifact
31+
run: |
3132
cd dist
32-
tar -czf CTkDesigner-linux-x64.tar.gz CTkDesigner/
33+
# onefile → single binary named CTkDesigner (no extension on Linux)
34+
tar -czf CTkDesigner-linux-x64.tar.gz CTkDesigner
3335
ls -lah
34-
36+
3537
- name: Upload artifact
3638
uses: actions/upload-artifact@v4
3739
with:
@@ -40,29 +42,32 @@ jobs:
4042

4143
build-windows:
4244
runs-on: windows-latest
43-
4445
steps:
4546
- name: Checkout code
4647
uses: actions/checkout@v4
47-
48+
4849
- name: Set up Python
4950
uses: actions/setup-python@v5
5051
with:
5152
python-version: '3.11'
52-
53+
5354
- name: Install dependencies
5455
run: |
5556
python -m pip install --upgrade pip
5657
pip install -r requirements.txt
5758
pip install pyinstaller
58-
59+
5960
- name: Build with PyInstaller
6061
run: |
61-
pyinstaller --onefile pyinstaller.spec
62+
pyinstaller pyinstaller.spec
63+
64+
- name: Package artifact
65+
run: |
6266
cd dist
63-
powershell Compress-Archive -Path CTkDesigner -DestinationPath CTkDesigner-windows-x64.zip
67+
# onefile → single binary named CTkDesigner.exe on Windows
68+
Compress-Archive -Path CTkDesigner.exe -DestinationPath CTkDesigner-windows-x64.zip
6469
dir
65-
70+
6671
- name: Upload artifact
6772
uses: actions/upload-artifact@v4
6873
with:
@@ -72,20 +77,18 @@ jobs:
7277
release:
7378
needs: [build-linux, build-windows]
7479
runs-on: ubuntu-latest
75-
7680
steps:
7781
- name: Checkout code
7882
uses: actions/checkout@v4
79-
83+
8084
- name: Download all artifacts
8185
uses: actions/download-artifact@v4
8286
with:
8387
path: artifacts
84-
88+
8589
- name: List artifacts
86-
run: |
87-
find artifacts -type f
88-
90+
run: find artifacts -type f
91+
8992
- name: Create Release
9093
uses: softprops/action-gh-release@v1
9194
with:

0 commit comments

Comments
 (0)