Skip to content

Commit 1129cff

Browse files
committed
ci: do separate 20.04 and 22.04 artifacts
1 parent 91c3294 commit 1129cff

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

.github/workflows/dev-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656

5757
- uses: actions/download-artifact@v3
5858

59-
- name: Display structure of downloaded files
59+
- name: Check Files
6060
run: ls -R
6161

.github/workflows/prod-build.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66
- master
77
jobs:
88
Build-Hobbits:
9-
runs-on: ubuntu-20.04
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-20.04, ubuntu-22.04]
13+
1014
steps:
1115
- uses: actions/setup-node@v3
1216
with:
@@ -44,11 +48,26 @@ jobs:
4448
run: ninja package -C build
4549
- uses: actions/upload-artifact@v3
4650
with:
47-
name: DEB Packages
51+
name: DEB Packages ${{ matrix.os }}
4852
path: build/hobbits-*deb*
4953

54+
Release-Hobbits:
55+
needs: Build-Hobbits
56+
runs-on: ubuntu-22.04
57+
steps:
58+
- uses: actions/setup-node@v3
59+
with:
60+
node-version: 14
61+
- uses: actions/checkout@v3
62+
63+
- uses: actions/download-artifact@v3
64+
65+
- name: Check Files
66+
run: ls -R
67+
5068
- name: Semantic Release
5169
run: |
70+
npm ci
5271
cp ci/full.releaserc.json .releaserc.json
5372
npx semantic-release
5473
env:

ci/full.releaserc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
{
2626
"assets": [
2727
{
28-
"path": "build/hobbits*deb*"
28+
"path": "DEB Packages ubuntu-20.04/*.deb",
29+
"name": "DEB Package for Ubuntu 20.04"
30+
},
31+
{
32+
"path": "DEB Packages ubuntu-22.04/*.deb",
33+
"name": "DEB Package for Ubuntu 22.04"
2934
}
3035
]
3136
}

0 commit comments

Comments
 (0)