mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
ci: Update build info
This commit is contained in:
parent
7dc8c662ca
commit
80e647ffec
3
.github/workflows/build.yml
vendored
Normal file
3
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@ -19,7 +19,9 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: ./bin/build-mac-x64.sh
|
- run: |
|
||||||
|
./bin/update-build-info.sh
|
||||||
|
./bin/build-mac-x64.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trilium-mac-x64
|
name: trilium-mac-x64
|
||||||
@ -35,7 +37,9 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: ./bin/build-mac-arm64.sh
|
- run: |
|
||||||
|
./bin/update-build-info.sh
|
||||||
|
./bin/build-mac-arm64.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trilium-mac-arm64
|
name: trilium-mac-arm64
|
||||||
@ -51,7 +55,9 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: ./bin/build-linux-x64.sh
|
- run: |
|
||||||
|
./bin/update-build-info.sh
|
||||||
|
./bin/build-linux-x64.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trilium-linux-x64.tar.xz
|
name: trilium-linux-x64.tar.xz
|
||||||
@ -71,7 +77,9 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: ./bin/build-server.sh
|
- run: |
|
||||||
|
./bin/update-build-info.sh
|
||||||
|
./bin/build-server.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trilium-linux-x64-server.tar.xz
|
name: trilium-linux-x64-server.tar.xz
|
||||||
@ -94,7 +102,9 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: ./bin/build-win-x64.sh
|
- run: |
|
||||||
|
./bin/update-build-info.sh
|
||||||
|
./bin/build-win-x64.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trilium-windows-x64
|
name: trilium-windows-x64
|
||||||
|
@ -32,7 +32,7 @@ mv package.json.tmp package.json
|
|||||||
|
|
||||||
git add package.json
|
git add package.json
|
||||||
|
|
||||||
echo 'export = { buildDate:"'`date --iso-8601=seconds`'", buildRevision: "'`git log -1 --format="%H"`'" };' > src/services/build.ts
|
./update-build-info.sh
|
||||||
|
|
||||||
git add src/services/build.ts
|
git add src/services/build.ts
|
||||||
|
|
||||||
|
3
bin/update-build-info.sh
Normal file
3
bin/update-build-info.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo 'export = { buildDate:"'`date --iso-8601=seconds`'", buildRevision: "'`git log -1 --format="%H"`'" };' > src/services/build.ts
|
Loading…
x
Reference in New Issue
Block a user