1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build .deb
on:
push:
tags:
workflow_dispatch:
jobs:
deb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Install cargo-deb
run: cargo install cargo-deb --locked
- name: Build .deb
run: cargo deb
- name: Show package contents
run: |
set -e
deb=$(ls target/debian/*.deb | head -1)
echo "Built: $deb"
dpkg-deb --info "$deb"
dpkg-deb --contents "$deb"
- name: Upload .deb artifact
uses: actions/upload-artifact@v4
with:
name: qssh-deb
path: target/debian/*.deb
- name: Attach .deb to GitHub release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: target/debian/*.deb