Skip to content

Commit 61709fb

Browse files
committed
(workflow) Build the debian package and add debian copyright file
Signed-off-by: Arisu Tachibana <arisu.tachibana@miraclelinux.com>
1 parent 2d6022e commit 61709fb

File tree

4 files changed

+36
-14
lines changed

4 files changed

+36
-14
lines changed

.github/workflows/debian.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Make Debian Package
1+
name: Create Debian Package
22

33
on:
44
push:
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build-dsc:
12+
build-deb:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
@@ -39,32 +39,27 @@ jobs:
3939
HEAD
4040
4141
- name: Build Debian package
42-
run: debuild -S -us -uc --lintian-opts --profile debian
42+
run: debuild -b -us -uc --lintian-opts --profile debian
4343

44-
- name: Collect Debian artifacts for development
44+
- name: Collect Debian artifacts
4545
run: |
4646
mkdir -p artifacts
4747
shopt -s nullglob
4848
for file in ../kci-dev_*; do
4949
mv "$file" artifacts/
5050
done
5151
52-
- name: Upload Debian artifacts for development
52+
- name: Upload Debian artifact to the workflow
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: kci-dev-debian-source
55+
name: kci-dev-debian-package
5656
path: artifacts/
5757

58-
- name: Upload Debian source to GitHub Release on new tag
58+
- name: Upload Debian package to GitHub Release on new tag
5959
if: startsWith(github.ref, 'refs/tags/')
6060
uses: softprops/action-gh-release@v2
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
with:
6464
tag_name: ${{ github.ref_name }}
65-
files: |
66-
artifacts/kci-dev_*.dsc
67-
artifacts/kci-dev_*.orig.tar.*
68-
artifacts/kci-dev_*debian.tar.*
69-
artifacts/kci-dev_*_source.buildinfo
70-
artifacts/kci-dev_*_source.changes
65+
files: artifacts/*

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kci-dev (0.1.9-1) unstable; urgency=medium
33
* New upstream release.
44
* Update to version 0.1.9.
55

6-
-- Arisu Tachibana <arisu.tachibana@miraclelinux.com> Sat, 07 Dec 2025 12:00:00 +0900
6+
-- Arisu Tachibana <arisu.tachibana@miraclelinux.com> Sun, 07 Dec 2025 12:00:00 +0900
77

88
kci-dev (0.1.8-1) unstable; urgency=medium
99

debian/copyright

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: kci-dev
3+
Upstream-Contact: Arisu Tachibana <arisu.tachibana@miraclelinux.com>
4+
Source: https://pypi.org/project/kci-dev/
5+
6+
Files: *
7+
Copyright: 2023-2025 Arisu Tachibana <arisu.tachibana@miraclelinux.com>
8+
License: LGPL-2.1+
9+
This package is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
.
14+
This package is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
.
19+
You should have received a copy of the GNU General Public License
20+
along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
.
22+
On Debian systems, the complete text of the GNU Lesser General
23+
Public License can be found in "/usr/share/common-licenses/LGPL-2.1".

debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/usr/bin/make -f
22
export PYBUILD_NAME=kcidev
3+
export PYBUILD_SYSTEM=pyproject
34

45
%:
56
dh $@ --buildsystem=pybuild
67

8+
override_dh_auto_install:
9+
dh_auto_install --destdir=debian/kci-dev
10+
711
override_dh_auto_test:
812
@echo "Skipping tests"; true

0 commit comments

Comments
 (0)