Skip to content

Commit 6cf6f7d

Browse files
committed
ci: trigger on push, zip macOS .app artifacts
1 parent cb52a03 commit 6cf6f7d

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
- '**/*.py'
88
- '.github/workflows/**'
99
- 'requirements.txt'
10+
push:
11+
branches:
12+
- master
13+
- ci-build-and-no-audio-asf
14+
paths:
15+
- '**/*.py'
16+
- '.github/workflows/**'
17+
- 'requirements.txt'
1018
workflow_dispatch: {}
1119

1220
jobs:
@@ -52,9 +60,15 @@ jobs:
5260
if [[ "$RUNNER_OS" == "Windows" ]]; then
5361
cp dist/WINFF-GUI-PyQt6.exe artifacts/
5462
cp dist/WINFF-GUI-Tkinter.exe artifacts/
63+
elif [[ "$RUNNER_OS" == "macOS" ]]; then
64+
# Package .app bundles as zips
65+
cd dist
66+
zip -r ../artifacts/WINFF-GUI-PyQt6-macos.app.zip "WINFF-GUI-PyQt6.app"
67+
zip -r ../artifacts/WINFF-GUI-Tkinter-macos.app.zip "WINFF-GUI-Tkinter.app"
68+
cd -
5569
else
56-
cp dist/WINFF-GUI-PyQt6 artifacts/
57-
cp dist/WINFF-GUI-Tkinter artifacts/
70+
# Fallback for other OSes (not used here)
71+
cp -r dist/* artifacts/
5872
fi
5973
6074
- name: Upload artifacts

0 commit comments

Comments
 (0)