diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 0000000..447cef2 --- /dev/null +++ b/.github/workflows/debian.yml @@ -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 diff --git a/debian/changelog b/debian/changelog index abbc5ae..f603282 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 10 Oct 2025 21:00:00 +0900 + -- Arisu Tachibana Fri, 04 Dec 2025 21:00:00 +0900 diff --git a/debian/kci-dev-completions.install b/debian/kci-dev-completions.install index 780e42c..0681a7f 100644 --- a/debian/kci-dev-completions.install +++ b/debian/kci-dev-completions.install @@ -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