mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	build(release): fix Unix artefact preparation
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -20,10 +20,10 @@ jobs:
 | 
				
			|||||||
        os:
 | 
					        os:
 | 
				
			||||||
          - name: macos
 | 
					          - name: macos
 | 
				
			||||||
            image: macos-latest
 | 
					            image: macos-latest
 | 
				
			||||||
            extension: dmg
 | 
					            extension: [dmg, zip]
 | 
				
			||||||
          - name: linux
 | 
					          - name: linux
 | 
				
			||||||
            image: ubuntu-latest
 | 
					            image: ubuntu-latest
 | 
				
			||||||
            extension: [deb, rpm]
 | 
					            extension: [deb, rpm, zip]
 | 
				
			||||||
          - name: windows
 | 
					          - name: windows
 | 
				
			||||||
            image: windows-latest
 | 
					            image: windows-latest
 | 
				
			||||||
            extension: exe
 | 
					            extension: exe
 | 
				
			||||||
@@ -49,11 +49,12 @@ jobs:
 | 
				
			|||||||
      - name: Prepare artifacts (Unix)
 | 
					      - name: Prepare artifacts (Unix)
 | 
				
			||||||
        if: runner.os != 'windows'
 | 
					        if: runner.os != 'windows'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          mkdir -p upload
 | 
					          mkdir -p upload;
 | 
				
			||||||
          file=$(find out/make -name '*.zip' -print -quit)
 | 
					          for ext in ${{ join(matrix.os.extension, ' ') }};
 | 
				
			||||||
          cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip"
 | 
					          do
 | 
				
			||||||
          file=$(find out/make -name '*.${{ matrix.os.extension }}' -print -quit)
 | 
					            file=$(find out/make -name "*.$ext" -print -quit);
 | 
				
			||||||
          cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}"
 | 
					            cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.$ext";
 | 
				
			||||||
 | 
					          done
 | 
				
			||||||
      - name: Prepare artifacts (Windows)
 | 
					      - name: Prepare artifacts (Windows)
 | 
				
			||||||
        if: runner.os == 'windows'
 | 
					        if: runner.os == 'windows'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user