4
4
branches :
5
5
- ' develop'
6
6
- ' feature/update*'
7
+
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
7
12
env :
8
13
REGISTRY : ghcr.io
9
14
IMAGE_NAME : ${{ github.repository }}
15
+
10
16
jobs :
11
17
build_darwin-x64 :
12
18
name : Build macOS x86_64
19
25
node-version : 20
20
26
cache : " npm"
21
27
- run : npm ci
22
- - run : ./bin/build-mac-x64.sh
28
+ - run : |
29
+ ./bin/update-build-info.sh
30
+ ./bin/build-mac-x64.sh
23
31
- uses : actions/upload-artifact@v4
24
32
with :
25
33
name : trilium-mac-x64.zip
35
43
node-version : 20
36
44
cache : " npm"
37
45
- run : npm ci
38
- - run : ./bin/build-mac-arm64.sh
46
+ - run : |
47
+ ./bin/update-build-info.sh
48
+ ./bin/build-mac-arm64.sh
39
49
- uses : actions/upload-artifact@v4
40
50
with :
41
51
name : trilium-mac-arm64.zip
51
61
node-version : 20
52
62
cache : " npm"
53
63
- run : npm ci
54
- - run : ./bin/build-linux-x64.sh
64
+ - run : |
65
+ ./bin/update-build-info.sh
66
+ ./bin/build-linux-x64.sh
55
67
- uses : actions/upload-artifact@v4
56
68
with :
57
69
name : trilium-linux-x64.tar.xz
71
83
node-version : 20
72
84
cache : " npm"
73
85
- run : npm ci
74
- - run : ./bin/build-server.sh
86
+ - run : |
87
+ ./bin/update-build-info.sh
88
+ ./bin/build-server.sh
75
89
- uses : actions/upload-artifact@v4
76
90
with :
77
91
name : trilium-linux-x64-server.tar.xz
@@ -94,11 +108,13 @@ jobs:
94
108
node-version : 20
95
109
cache : " npm"
96
110
- run : npm ci
97
- - run : ./bin/build-win-x64.sh
111
+ - run : |
112
+ ./bin/update-build-info.sh
113
+ ./bin/build-win-x64.sh DONTPACK
98
114
- uses : actions/upload-artifact@v4
99
115
with :
100
- name : trilium-windows-x64.zip
101
- path : dist/trilium-windows-x64-*.zip
116
+ name : trilium-windows-x64
117
+ path : dist/trilium-windows-x64
102
118
build_docker :
103
119
name : Build Docker image
104
120
runs-on : ubuntu-latest
0 commit comments