From ac1f066f4320c523fc7df207a681070547e89f38 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Mon, 23 Aug 2021 23:47:22 +0200 Subject: [PATCH] Build .deb package --- .github/workflows/build_deb.yml | 20 ++++++++++++++++++++ Cargo.toml | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/build_deb.yml diff --git a/.github/workflows/build_deb.yml b/.github/workflows/build_deb.yml new file mode 100644 index 0000000..3493bc1 --- /dev/null +++ b/.github/workflows/build_deb.yml @@ -0,0 +1,20 @@ +on: workflow_dispatch + +name: Build packages + +jobs: + build_deb: + name: Build .deb package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: cargo install cargo-deb + - run: cargo deb + - uses: actions/upload-artifact@v2 + with: + path: target/debian/*.deb diff --git a/Cargo.toml b/Cargo.toml index 6f3644b..44f0e63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,11 @@ git2 = { version = "0.13", default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" structopt = "0.3" + +[package.metadata.deb] +name = "git-mob" +revision = "1" +section = "vcs" +priority = "optional" +extended-description = """\ +A set of git subcommands for including co-authors to your git commits."""