Skip to content

(debian) Make debian packaging workflow #6

(debian) Make debian packaging workflow

(debian) Make debian packaging workflow #6

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: LINTIAN_PROFILE=debian debuild -S -us -uc
- name: Upload Debian package artifacts
uses: actions/upload-artifact@v4
with:
name: kci-dev-debian-source
path: |
../kci-dev_*.dsc
../kci-dev_*.debian.tar.*
../kci-dev_*.orig.tar.*
../kci-dev_*.buildinfo
../kci-dev_*.changes