Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 80e647f

Browse files
committed
ci: Update build info
1 parent 7dc8c66 commit 80e647f

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
on:
2+
workflow_call:
3+

.github/workflows/main.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
node-version: 20
2020
cache: "npm"
2121
- run: npm ci
22-
- run: ./bin/build-mac-x64.sh
22+
- run: |
23+
./bin/update-build-info.sh
24+
./bin/build-mac-x64.sh
2325
- uses: actions/upload-artifact@v4
2426
with:
2527
name: trilium-mac-x64
@@ -35,7 +37,9 @@ jobs:
3537
node-version: 20
3638
cache: "npm"
3739
- run: npm ci
38-
- run: ./bin/build-mac-arm64.sh
40+
- run: |
41+
./bin/update-build-info.sh
42+
./bin/build-mac-arm64.sh
3943
- uses: actions/upload-artifact@v4
4044
with:
4145
name: trilium-mac-arm64
@@ -51,7 +55,9 @@ jobs:
5155
node-version: 20
5256
cache: "npm"
5357
- run: npm ci
54-
- run: ./bin/build-linux-x64.sh
58+
- run: |
59+
./bin/update-build-info.sh
60+
./bin/build-linux-x64.sh
5561
- uses: actions/upload-artifact@v4
5662
with:
5763
name: trilium-linux-x64.tar.xz
@@ -71,7 +77,9 @@ jobs:
7177
node-version: 20
7278
cache: "npm"
7379
- run: npm ci
74-
- run: ./bin/build-server.sh
80+
- run: |
81+
./bin/update-build-info.sh
82+
./bin/build-server.sh
7583
- uses: actions/upload-artifact@v4
7684
with:
7785
name: trilium-linux-x64-server.tar.xz
@@ -94,7 +102,9 @@ jobs:
94102
node-version: 20
95103
cache: "npm"
96104
- run: npm ci
97-
- run: ./bin/build-win-x64.sh
105+
- run: |
106+
./bin/update-build-info.sh
107+
./bin/build-win-x64.sh
98108
- uses: actions/upload-artifact@v4
99109
with:
100110
name: trilium-windows-x64

bin/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mv package.json.tmp package.json
3232

3333
git add package.json
3434

35-
echo 'export = { buildDate:"'`date --iso-8601=seconds`'", buildRevision: "'`git log -1 --format="%H"`'" };' > src/services/build.ts
35+
./update-build-info.sh
3636

3737
git add src/services/build.ts
3838

bin/update-build-info.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
echo 'export = { buildDate:"'`date --iso-8601=seconds`'", buildRevision: "'`git log -1 --format="%H"`'" };' > src/services/build.ts

0 commit comments

Comments
 (0)