Skip to content

.github/workflows/deb.yml #58

.github/workflows/deb.yml

.github/workflows/deb.yml #58

Workflow file for this run

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