-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1020 Bytes
/
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
on:
workflow_dispatch:
jobs:
dbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: in
- uses: actions/checkout@master
with:
repository: colin-i/sync
path: in2
ref: edor
- name: Run a multi-line script
run: |
name=`cat in/debian/changelog | head -1 | grep -o ^[^\ ]*`
mv in2/debian/patches in/debian/patches
mv in2/.pc in/.pc
if [ -z "`dpkg -s devscripts>/dev/null 2>&1 && echo x`" ]; then
sudo apt install -y devscripts debhelper
fi
origf=${name}-1.tar.gz
if [ ! -e "${origf}" ]; then
origln=${name}_1.orig.tar.gz
wget https://ppa.launchpadcontent.net/colin-i/ppa/ubuntu/pool/main/e/${name}/${origln} -O ${origf}
ln -s ${origf} ${origln}
fi
cd in
debuild -S -us -uc
- name: unsigned debs
uses: actions/upload-artifact@v3
with:
name: sdebs
path: |
./*.dsc
./*.changes
./*.buildinfo
./*.debian.tar.xz