From 201bb55bd049a1ee416e804054b0c7c492976255 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sat, 25 Dec 2021 19:59:06 +0100 Subject: [PATCH] Add manual assets with manpages to .deb --- .github/workflows/build_deb.yml | 2 ++ Cargo.toml | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/build_deb.yml b/.github/workflows/build_deb.yml index 3493bc1..c4408fc 100644 --- a/.github/workflows/build_deb.yml +++ b/.github/workflows/build_deb.yml @@ -14,6 +14,8 @@ jobs: toolchain: stable override: true - run: cargo install cargo-deb + - run: cargo build --release + - run: ./build-manpages.sh - run: cargo deb - uses: actions/upload-artifact@v2 with: diff --git a/Cargo.toml b/Cargo.toml index 06634db..47fa0c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,3 +25,16 @@ section = "vcs" priority = "optional" extended-description = """\ A set of git subcommands for including co-authors to your git commits.""" +assets = [ + ["target/release/git-mob", "usr/bin/", "755"], + ["target/release/git-solo", "usr/bin/", "755"], + ["target/release/git-add-coauthor", "usr/bin/", "755"], + ["target/release/git-edit-coauthor", "usr/bin/", "755"], + ["target/release/git-delete-coauthor", "usr/bin/", "755"], + ["target/man/git-mob.1.gz", "usr/share/man/man1/", "644"], + ["target/man/git-solo.1.gz", "usr/share/man/man1/", "644"], + ["target/man/git-add-coauthor.1.gz", "usr/share/man/man1/", "644"], + ["target/man/git-edit-coauthor.1.gz", "usr/share/man/man1/", "644"], + ["target/man/git-delete-coauthor.1.gz", "usr/share/man/man1/", "644"], + ["README.md", "usr/share/doc/git-mob/README", "644"], +]