mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 10:14:13 -04:00
Merge branch 'master' of github.com:AnonymusRaccoon/Kyoo
This commit is contained in:
commit
f534566324
55
.github/workflows/release.yml
vendored
55
.github/workflows/release.yml
vendored
@ -7,6 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Builf for ${{matrix.artifact}}
|
||||
runs-on: ${{matrix.os}}
|
||||
strategy:
|
||||
matrix:
|
||||
@ -34,3 +35,57 @@ jobs:
|
||||
with:
|
||||
name: kyoo_${{matrix.artifact}}
|
||||
path: dist/*
|
||||
|
||||
release:
|
||||
name: Create debian & rpm releases
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
env:
|
||||
description: "A media browser"
|
||||
version: v0.0.1 #${{ github.ref }}
|
||||
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 deployment/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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user