Skip to content

Commit 138a445

Browse files
committed
Fix release workflow: move deb config and use matrix.script
1 parent 4dd9a9f commit 138a445

2 files changed

Lines changed: 39 additions & 34 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [ubuntu-latest, windows-latest, macos-latest]
25+
include:
26+
- os: ubuntu-latest
27+
script: linux
28+
artifact_glob: |
29+
dist/*.AppImage
30+
dist/*.deb
31+
- os: windows-latest
32+
script: win
33+
artifact_glob: |
34+
dist/*.exe
35+
- os: macos-latest
36+
script: mac
37+
artifact_glob: |
38+
dist/*.dmg
39+
dist/*.zip
2540
2641
steps:
2742
- name: Checkout
@@ -54,35 +69,25 @@ jobs:
5469
run: git config --system core.longpaths true
5570

5671
- name: Build
72+
shell: bash
5773
env:
5874
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5975
# macOS code signing (optional)
6076
CSC_LINK: ${{ secrets.CSC_LINK }}
6177
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
6278
# Windows code signing (optional)
6379
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
64-
run: |
65-
if [ "$RUNNER_OS" == "Linux" ]; then
66-
npm run build:linux
67-
elif [ "$RUNNER_OS" == "Windows" ]; then
68-
npm run build:win
69-
elif [ "$RUNNER_OS" == "macOS" ]; then
70-
npm run build:mac
71-
fi
80+
run: npm run build:${{ matrix.script }}
7281

7382
- name: List build output
83+
if: always()
7484
run: ls -la dist || true
7585

7686
- name: Upload artifacts
7787
uses: actions/upload-artifact@v4
7888
with:
7989
name: opencluely-${{ matrix.os }}
80-
path: |
81-
dist/*.dmg
82-
dist/*.zip
83-
dist/*.exe
84-
dist/*.AppImage
85-
dist/*.deb
90+
path: ${{ matrix.artifact_glob }}
8691
if-no-files-found: warn
8792

8893
release:

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,26 @@
130130
}
131131
],
132132
"icon": "assets/icons/app-icon.png",
133-
"category": "Utility",
134-
"deb": {
135-
"depends": [
136-
"libgtk-3-0",
137-
"libnotify4",
138-
"libnss3",
139-
"libxss1",
140-
"libxtst6",
141-
"xauth",
142-
"libasound2t64",
143-
"libgbm1",
144-
"python3 (>= 3.10)",
145-
"python3-venv",
146-
"python3-pip",
147-
"ffmpeg"
148-
],
149-
"fpm": [
150-
"--after-install=scripts/post-install-deb.sh"
151-
]
152-
}
133+
"category": "Utility"
134+
},
135+
"deb": {
136+
"depends": [
137+
"libgtk-3-0",
138+
"libnotify4",
139+
"libnss3",
140+
"libxss1",
141+
"libxtst6",
142+
"xauth",
143+
"libasound2t64",
144+
"libgbm1",
145+
"python3 (>= 3.10)",
146+
"python3-venv",
147+
"python3-pip",
148+
"ffmpeg"
149+
],
150+
"fpm": [
151+
"--after-install=scripts/post-install-deb.sh"
152+
]
153153
},
154154
"nsis": {
155155
"oneClick": false,

0 commit comments

Comments
 (0)