Build .deb package

This commit is contained in:
Martin Frost 2021-08-23 23:47:22 +02:00
parent 8fc590906a
commit ac1f066f43
2 changed files with 28 additions and 0 deletions

20
.github/workflows/build_deb.yml vendored Normal file
View File

@ -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

View File

@ -17,3 +17,11 @@ git2 = { version = "0.13", default-features = false }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
structopt = "0.3" 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."""