-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.03 KB
/
deb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Create debian package
env:
DPKG: ${{github.event.repository.name}}_${{github.sha}}-${{github.run_number}}
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create package structure
run: |
mkdir $DPKG
cd $DPKG
mkdir -p DEBIAN usr/local/bin usr/local/share/gfind
- name: Copy stuff inside
run: |
cp deb_control $DPKG/DEBIAN/control
cp gfind $DPKG/usr/local/bin/gfind
chmod +x $DPKG/usr/local/bin/*
cp -r share/* $DPKG/usr/local/share/gfind/
cp LICENSE $DPKG/usr/local/share/gfind/
cp README.md $DPKG/usr/local/share/gfind/
- name: Create deb package
run: |
export DPKG_NAME="${DPKG}_all.deb"
dpkg-deb -Zxz --root-owner-group --build $DPKG --output $DPKG_NAME
- name: Upload deb as artifact
uses: actions/upload-artifact@v3
with:
name: $DPKG_NAME
path: $DPKG_NAME