Skip to content

Commit 201ae95

Browse files
committed
(debian) Make debian packaging workflow
Signed-off-by: Arisu Tachibana <[email protected]>
1 parent 8756568 commit 201ae95

File tree

4 files changed

+59
-6
lines changed

4 files changed

+59
-6
lines changed

.github/workflows/debian.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Make Debian Package
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-dsc:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install build dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y \
19+
build-essential \
20+
debhelper \
21+
devscripts \
22+
dh-python \
23+
dh-sequence-python3 \
24+
pybuild-plugin-pyproject \
25+
fakeroot \
26+
python3-all \
27+
python3-poetry-core
28+
29+
- name: Create upstream tarball
30+
run: |
31+
DEB_VERSION=$(dpkg-parsechangelog -SVersion)
32+
UPSTREAM_VERSION=${DEB_VERSION%%-*}
33+
git archive --format=tar.gz \
34+
--output=../kci-dev_${UPSTREAM_VERSION}.orig.tar.gz \
35+
--prefix=kci-dev-${UPSTREAM_VERSION}/ \
36+
HEAD
37+
38+
- name: Build Debian package
39+
run: |
40+
export LINTIAN_PROFILE=debian
41+
debuild -S -us -uc
42+
43+
- name: Upload Debian package artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: kci-dev-debian-source
47+
path: |
48+
../kci-dev_*.dsc
49+
../kci-dev_*.debian.tar.*
50+
../kci-dev_*.orig.tar.*
51+
../kci-dev_*.buildinfo
52+
../kci-dev_*.changes
53+

debian/changelog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
kci-dev (0.1.8-1) UNRELEASED; urgency=medium
1+
kci-dev (0.1.8-1) unstable; urgency=medium
22

33
* Initial packaging.
44

5-
-- Arisu Tachibana <[email protected]> Fri, 10 Oct 2025 21:00:00 +0900
5+
-- Arisu Tachibana <[email protected]> Fri, 04 Dec 2025 21:00:00 +0900
66

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Maintainer: Arisu Tachibana <[email protected]>
55
Build-Depends:
66
debhelper-compat (= 13),
77
dh-sequence-python3,
8-
python3-all,
98
pybuild-plugin-pyproject,
9+
python3-all,
1010
python3-poetry-core
1111
#keep for compatibility with dpkg older than 1.22.13
1212
Rules-Requires-Root: no

debian/kci-dev-completions.install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# move completions files under share
2-
kci-dev/completions/kci-dev-completion.bash usr/share/bash-completion/completions/kci-dev
3-
kci-dev/completions/_kci-dev usr/share/zsh/vendor-completions/_kci-dev
4-
kci-dev/completions/kci-dev.fish usr/share/fish/vendor_completions.d/kci-dev.fish
2+
completions/kci-dev-completion.bash usr/share/bash-completion/completions/kci-dev
3+
completions/_kci-dev usr/share/zsh/vendor-completions/_kci-dev
4+
completions/kci-dev.fish usr/share/fish/vendor_completions.d/kci-dev.fish

0 commit comments

Comments
 (0)