This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_call :
3
+
Original file line number Diff line number Diff line change 19
19
node-version : 20
20
20
cache : " npm"
21
21
- run : npm ci
22
- - run : ./bin/build-mac-x64.sh
22
+ - run : |
23
+ ./bin/update-build-info.sh
24
+ ./bin/build-mac-x64.sh
23
25
- uses : actions/upload-artifact@v4
24
26
with :
25
27
name : trilium-mac-x64
35
37
node-version : 20
36
38
cache : " npm"
37
39
- run : npm ci
38
- - run : ./bin/build-mac-arm64.sh
40
+ - run : |
41
+ ./bin/update-build-info.sh
42
+ ./bin/build-mac-arm64.sh
39
43
- uses : actions/upload-artifact@v4
40
44
with :
41
45
name : trilium-mac-arm64
51
55
node-version : 20
52
56
cache : " npm"
53
57
- run : npm ci
54
- - run : ./bin/build-linux-x64.sh
58
+ - run : |
59
+ ./bin/update-build-info.sh
60
+ ./bin/build-linux-x64.sh
55
61
- uses : actions/upload-artifact@v4
56
62
with :
57
63
name : trilium-linux-x64.tar.xz
71
77
node-version : 20
72
78
cache : " npm"
73
79
- run : npm ci
74
- - run : ./bin/build-server.sh
80
+ - run : |
81
+ ./bin/update-build-info.sh
82
+ ./bin/build-server.sh
75
83
- uses : actions/upload-artifact@v4
76
84
with :
77
85
name : trilium-linux-x64-server.tar.xz
94
102
node-version : 20
95
103
cache : " npm"
96
104
- run : npm ci
97
- - run : ./bin/build-win-x64.sh
105
+ - run : |
106
+ ./bin/update-build-info.sh
107
+ ./bin/build-win-x64.sh
98
108
- uses : actions/upload-artifact@v4
99
109
with :
100
110
name : trilium-windows-x64
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ mv package.json.tmp package.json
32
32
33
33
git add package.json
34
34
35
- echo ' export = { buildDate:" ' ` date --iso-8601=seconds ` ' ", buildRevision: " ' ` git log -1 --format= " %H " ` ' " }; ' > src/services/ build.ts
35
+ ./update- build-info.sh
36
36
37
37
git add src/services/build.ts
38
38
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ echo ' export = { buildDate:"' ` date --iso-8601=seconds` ' ", buildRevision: "' ` git log -1 --format=" %H" ` ' " };' > src/services/build.ts
You can’t perform that action at this time.
0 commit comments