mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-29 11:44:21 +08:00 
			
		
		
		
	Prepare for release
This commit is contained in:
		
							parent
							
								
									e4d6ab3a6e
								
							
						
					
					
						commit
						6dee56d72e
					
				
							
								
								
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,8 +1,8 @@ | |||||||
| name: Main | name: Main | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: |     tags: | ||||||
|       - develop |       - v* | ||||||
|   workflow_dispatch:     |   workflow_dispatch:     | ||||||
| permissions: | permissions: | ||||||
|   contents: write |   contents: write | ||||||
|  | |||||||
| @ -47,35 +47,3 @@ echo "Tagging commit with $TAG" | |||||||
| 
 | 
 | ||||||
| git tag $TAG | git tag $TAG | ||||||
| git push origin $TAG | git push origin $TAG | ||||||
| 
 |  | ||||||
| bin/build.sh |  | ||||||
| 
 |  | ||||||
| LINUX_X64_BUILD=trilium-linux-x64-$VERSION.tar.xz |  | ||||||
| DEBIAN_X64_BUILD=trilium_${VERSION}_amd64.deb |  | ||||||
| WINDOWS_X64_BUILD=trilium-windows-x64-$VERSION.zip |  | ||||||
| MAC_X64_BUILD=trilium-mac-x64-$VERSION.zip |  | ||||||
| MAC_ARM64_BUILD=trilium-mac-arm64-$VERSION.zip |  | ||||||
| SERVER_BUILD=trilium-linux-x64-server-$VERSION.tar.xz |  | ||||||
| 
 |  | ||||||
| echo "Creating release in GitHub" |  | ||||||
| 
 |  | ||||||
| EXTRA= |  | ||||||
| 
 |  | ||||||
| if [[ $TAG == *"beta"* ]]; then |  | ||||||
|   EXTRA=--prerelease |  | ||||||
| fi |  | ||||||
| 
 |  | ||||||
| if [ ! -z "$GITHUB_CLI_AUTH_TOKEN" ]; then |  | ||||||
|   echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token |  | ||||||
| fi |  | ||||||
| 
 |  | ||||||
| gh release create -d "$TAG" \ |  | ||||||
|     --title "$TAG release" \ |  | ||||||
|     --notes "" \ |  | ||||||
|     $EXTRA \ |  | ||||||
|     "dist/$DEBIAN_X64_BUILD" \ |  | ||||||
|     "dist/$LINUX_X64_BUILD" \ |  | ||||||
|     "dist/$WINDOWS_X64_BUILD" \ |  | ||||||
|     "dist/$MAC_X64_BUILD" \ |  | ||||||
|     "dist/$MAC_ARM64_BUILD" \ |  | ||||||
|     "dist/$SERVER_BUILD" |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran