Skip to content

(debian) Make debian packaging workflow #9

(debian) Make debian packaging workflow

(debian) Make debian packaging workflow #9

Workflow file for this run

name: Make Debian Package
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-dsc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
debhelper \
devscripts \
dh-python \
dh-sequence-python3 \
pybuild-plugin-pyproject \
fakeroot \
python3-all \
python3-poetry-core
- name: Create upstream tarball
run: |
DEB_VERSION=$(dpkg-parsechangelog -SVersion)
UPSTREAM_VERSION=${DEB_VERSION%%-*}
git archive --format=tar.gz \
--output=../kci-dev_${UPSTREAM_VERSION}.orig.tar.gz \
--prefix=kci-dev-${UPSTREAM_VERSION}/ \
HEAD
- name: Build Debian package
run: debuild -S -us -uc
- name: Collect Debian artifacts
run: |
mkdir -p artifacts
shopt -s nullglob
for file in ../kci-dev_*; do
mv "$file" artifacts/
done
- name: Upload Debian artifacts
uses: actions/upload-artifact@v4
with:
name: kci-dev-debian-source
path: artifacts/