kinjo 0.2.0

Kinjo: mDNS TUI and commands launch for local network services
Documentation
name: Publish Debian package

on:
  release:
    types: [created]
  workflow_dispatch:

permissions:
  contents: write

env:
  CARGO_TERM_COLOR: always

jobs:
  deb:
    strategy:
      matrix:
        # Native runners for each architecture avoid cross-compiling the C
        # dependencies (libavahi-client, libxcb, etc).
        os: [ubuntu-latest, ubuntu-24.04-arm]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v7

      - name: Set up build environment
        uses: ./.github/actions/setup

      - name: Install cargo-deb
        uses: taiki-e/cache-cargo-install-action@417450f3c33ee20393705369577571770643d4c7
        with:
          tool: cargo-deb

      - name: Build Debian package
        run: cargo deb --locked --verbose

      - name: Upload package to release
        env:
          GH_TOKEN: ${{ github.token }}
        # github.event.release is only set for the `release` trigger; fall back
        # to the checked-out ref when dispatched manually (see prepare-release.yml).
        run: gh release upload "${{ github.event.release.tag_name || github.ref_name }}" target/debian/*.deb --clobber