Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
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 --lintian-opts --profile debian

- name: Collect Debian artifacts for development
run: |
mkdir -p artifacts
shopt -s nullglob
for file in ../kci-dev_*; do
mv "$file" artifacts/
done

- name: Upload Debian artifacts for development
uses: actions/upload-artifact@v4
with:
name: kci-dev-debian-source
path: artifacts/

- name: Upload Debian source to GitHub Release on new tag
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
files: |
../kci-dev_*.dsc
../kci-dev_*.orig.tar.*
../kci-dev_*debian.tar.*
../kci-dev_*_source.buildinfo
../kci-dev_*_source.changes
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kci-dev (0.1.8-1) UNRELEASED; urgency=medium
kci-dev (0.1.8-1) unstable; urgency=medium

* Initial packaging.

-- Arisu Tachibana <arisu.tachibana@miraclelinux.com> Fri, 10 Oct 2025 21:00:00 +0900
-- Arisu Tachibana <arisu.tachibana@miraclelinux.com> Fri, 04 Dec 2025 21:00:00 +0900

6 changes: 3 additions & 3 deletions debian/kci-dev-completions.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# move completions files under share
kci-dev/completions/kci-dev-completion.bash usr/share/bash-completion/completions/kci-dev
kci-dev/completions/_kci-dev usr/share/zsh/vendor-completions/_kci-dev
kci-dev/completions/kci-dev.fish usr/share/fish/vendor_completions.d/kci-dev.fish
completions/kci-dev-completion.bash usr/share/bash-completion/completions/kci-dev
completions/_kci-dev usr/share/zsh/vendor-completions/_kci-dev
completions/kci-dev.fish usr/share/fish/vendor_completions.d/kci-dev.fish
Loading