mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Adding a debian and a rpm release
This commit is contained in:
		
							parent
							
								
									42cd604e77
								
							
						
					
					
						commit
						3256d5e6cc
					
				
							
								
								
									
										73
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										73
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -5,8 +5,13 @@ on:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
      
 | 
			
		||||
env:
 | 
			
		||||
  description: "A media browser"
 | 
			
		||||
  version: beta #${{ github.ref }}
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    name: Builf for ${{matrix.artifact}}
 | 
			
		||||
    runs-on: ${{matrix.os}}
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
@ -33,4 +38,72 @@ jobs:
 | 
			
		||||
      - uses: actions/upload-artifact@v2
 | 
			
		||||
        with:
 | 
			
		||||
          name: kyoo_${{matrix.artifact}}
 | 
			
		||||
          
 | 
			
		||||
  release:
 | 
			
		||||
    name: Create debian & rpm releases
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    needs: build
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v1
 | 
			
		||||
      - uses: actions/download-artifact@v2
 | 
			
		||||
        with:
 | 
			
		||||
          name: kyoo_linux
 | 
			
		||||
          path: dist
 | 
			
		||||
      - name: Create the package structure
 | 
			
		||||
        run: |
 | 
			
		||||
          mkdir -p pkg/usr/lib/
 | 
			
		||||
          cp -r --no-preserve ownership dist/* pkg/usr/lib/kyoo
 | 
			
		||||
          install -Dm 644 kyoo.service -t pkg/usr/lib/systemd/system/
 | 
			
		||||
          install -Dm 644 deployment/kyoo.sysusers pkg/usr/lib/sysusers.d/kyoo.conf
 | 
			
		||||
	        install -Dm 644 deployment/kyoo.tmpfiles pkg/usr/lib/tmpfiles.d/kyoo.conf
 | 
			
		||||
 | 
			
		||||
      - uses: jiro4989/build-deb-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          package: kyoo
 | 
			
		||||
          package_root: pkg
 | 
			
		||||
          maintainer: Zoe Roux
 | 
			
		||||
          version: ${{env.version}}
 | 
			
		||||
          arch: amd64
 | 
			
		||||
          desc: ${{env.description}}
 | 
			
		||||
      - uses: jiro4989/build-rpm-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          package: kyoo
 | 
			
		||||
          package_root: .pkg
 | 
			
		||||
          maintainer: Zoe Roux
 | 
			
		||||
          version: ${{env.version}}
 | 
			
		||||
          arch: x86_64
 | 
			
		||||
          desc: ${{env.description}}
 | 
			
		||||
          summary: ${{env.description}}
 | 
			
		||||
      - uses: actions/upload-artifact@v2
 | 
			
		||||
        with:
 | 
			
		||||
          name: artifact-deb
 | 
			
		||||
          path: |
 | 
			
		||||
            ./*.deb
 | 
			
		||||
      - uses: actions/upload-artifact@v2
 | 
			
		||||
        with:
 | 
			
		||||
          name: artifact-rpm
 | 
			
		||||
          path: |
 | 
			
		||||
            ./*.rpm
 | 
			
		||||
            !./*-debuginfo-*.rpm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
#  new-version:
 | 
			
		||||
#    if: startsWith(github.ref, 'refs/tags/v')
 | 
			
		||||
#    runs-on: ubuntu-latest
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
          path: dist/*
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user