mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08: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 | ||||
|           cache: "npm" | ||||
|       - 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 | ||||
|         with: | ||||
|           name: trilium-mac-x64 | ||||
| @ -35,7 +37,9 @@ jobs: | ||||
|           node-version: 20 | ||||
|           cache: "npm" | ||||
|       - 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 | ||||
|         with: | ||||
|           name: trilium-mac-arm64 | ||||
| @ -51,7 +55,9 @@ jobs: | ||||
|           node-version: 20 | ||||
|           cache: "npm" | ||||
|       - 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 | ||||
|         with: | ||||
|           name: trilium-linux-x64.tar.xz | ||||
| @ -71,7 +77,9 @@ jobs: | ||||
|           node-version: 20 | ||||
|           cache: "npm" | ||||
|       - run: npm ci | ||||
|       - run: ./bin/build-server.sh | ||||
|       - run: | | ||||
|           ./bin/update-build-info.sh | ||||
|           ./bin/build-server.sh | ||||
|       - uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: trilium-linux-x64-server.tar.xz | ||||
| @ -94,7 +102,9 @@ jobs: | ||||
|           node-version: 20 | ||||
|           cache: "npm" | ||||
|       - 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 | ||||
|         with: | ||||
|           name: trilium-windows-x64 | ||||
|  | ||||
| @ -32,7 +32,7 @@ mv package.json.tmp 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 | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										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
	 Elian Doran
						Elian Doran