File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 56
56
57
57
- uses : actions/download-artifact@v3
58
58
59
- - name : Display structure of downloaded files
59
+ - name : Check Files
60
60
run : ls -R
61
61
Original file line number Diff line number Diff line change 6
6
- master
7
7
jobs :
8
8
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
+
10
14
steps :
11
15
- uses : actions/setup-node@v3
12
16
with :
@@ -44,11 +48,26 @@ jobs:
44
48
run : ninja package -C build
45
49
- uses : actions/upload-artifact@v3
46
50
with :
47
- name : DEB Packages
51
+ name : DEB Packages ${{ matrix.os }}
48
52
path : build/hobbits-*deb*
49
53
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
+
50
68
- name : Semantic Release
51
69
run : |
70
+ npm ci
52
71
cp ci/full.releaserc.json .releaserc.json
53
72
npx semantic-release
54
73
env :
Original file line number Diff line number Diff line change 25
25
{
26
26
"assets" : [
27
27
{
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"
29
34
}
30
35
]
31
36
}
You can’t perform that action at this time.
0 commit comments