mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Zipping content after build to keep execution bits
This commit is contained in:
		
							parent
							
								
									1daaf620a5
								
							
						
					
					
						commit
						418e32c3de
					
				
							
								
								
									
										19
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -31,10 +31,20 @@ jobs:
 | 
				
			|||||||
          dotnet-version: 5.0.x
 | 
					          dotnet-version: 5.0.x
 | 
				
			||||||
      - name: Build the app
 | 
					      - name: Build the app
 | 
				
			||||||
        run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist Kyoo
 | 
					        run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist Kyoo
 | 
				
			||||||
 | 
					      - name: Compression output
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          assets=kyoo_${{matrix.artifact}}
 | 
				
			||||||
 | 
					          if [[ "${{runner.os}}" == "Windows" ]]; then
 | 
				
			||||||
 | 
					            7z a "$assets.zip" dist
 | 
				
			||||||
 | 
					          else
 | 
				
			||||||
 | 
					            tar czf "$assets.tar.gz" dist
 | 
				
			||||||
 | 
					          fi
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: kyoo_${{matrix.artifact}}
 | 
					          name: kyoo_${{matrix.artifact}}
 | 
				
			||||||
          path: dist/*
 | 
					          path: |
 | 
				
			||||||
 | 
					            *.zip
 | 
				
			||||||
 | 
					            *.tar.gz
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
  release:
 | 
					  release:
 | 
				
			||||||
    name: Create debian, rpm & arch releases
 | 
					    name: Create debian, rpm & arch releases
 | 
				
			||||||
@ -48,7 +58,9 @@ jobs:
 | 
				
			|||||||
      - uses: actions/download-artifact@v2
 | 
					      - uses: actions/download-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: kyoo_linux
 | 
					          name: kyoo_linux
 | 
				
			||||||
          path: dist
 | 
					          path: dist.tar.gz
 | 
				
			||||||
 | 
					      - name: Unzip the published files.
 | 
				
			||||||
 | 
					        run: mkdir dist && tar -C dist -xzf dist.tar.gz dist
 | 
				
			||||||
      - name: Create the package structure
 | 
					      - name: Create the package structure
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          mkdir -p pkg/usr/lib/
 | 
					          mkdir -p pkg/usr/lib/
 | 
				
			||||||
@ -90,14 +102,17 @@ jobs:
 | 
				
			|||||||
          namcapDisable: true
 | 
					          namcapDisable: true
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
 | 
					          name: kyoo_rpm
 | 
				
			||||||
          path: |
 | 
					          path: |
 | 
				
			||||||
            ./*.rpm
 | 
					            ./*.rpm
 | 
				
			||||||
            !./*-debuginfo-*.rpm
 | 
					            !./*-debuginfo-*.rpm
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
 | 
					          name: kyoo_debian
 | 
				
			||||||
          path: ./*.deb
 | 
					          path: ./*.deb
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
 | 
					          name: kyoo_arch
 | 
				
			||||||
          path: ${{steps.makepkg.outputs.pkgfile0}}
 | 
					          path: ${{steps.makepkg.outputs.pkgfile0}}
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
#  new-version:
 | 
					#  new-version:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user