From 51636402c2bedad980fd4e3358e987f25eb2b807 Mon Sep 17 00:00:00 2001 From: Thomas Payet Date: Wed, 4 Dec 2019 14:32:18 +0100 Subject: [PATCH] Add debian package in CI --- .github/workflows/README.md | 2 +- .github/workflows/publish-deb-pkg.yml | 28 +++++++++++++++++++++++++++ meilisearch-core/Cargo.toml | 1 + meilisearch-http/Cargo.toml | 2 ++ meilisearch-schema/Cargo.toml | 1 + meilisearch-tokenizer/Cargo.toml | 1 + meilisearch-types/Cargo.toml | 1 + 7 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-deb-pkg.yml diff --git a/.github/workflows/README.md b/.github/workflows/README.md index cc91735fb..d6c8e72aa 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -8,4 +8,4 @@ - On each pull request, we are triggering `cargo test`. - On each commit on master, we are building the latest docker image. -- On each tag, we are building the tagged docker image and the binaries for MacOS & Ubuntu. +- On each tag, we are building the tagged docker image, the binaries for MacOS & Ubuntu, and the debian package. diff --git a/.github/workflows/publish-deb-pkg.yml b/.github/workflows/publish-deb-pkg.yml new file mode 100644 index 000000000..eb7354cbe --- /dev/null +++ b/.github/workflows/publish-deb-pkg.yml @@ -0,0 +1,28 @@ +name: Publish debian package to GitHub release + +on: + push: + tags: + - '*' + +jobs: + publish: + name: Publish debian packagge + runs-on: ubuntu-latest + + steps: + - uses: hecrj/setup-rust-action@master + with: + rust-version: stable + - name: Install cargo-deb + run: cargo install cargo-deb + - uses: actions/checkout@v1 + - name: Build deb package + run: cargo deb -p meilisearch-http -o target/debian/meilisearch.deb + - name: Upload debian pkg to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/debian/meilisearch.deb + asset_name: meilisearch.deb + tag: ${{ github.ref }} diff --git a/meilisearch-core/Cargo.toml b/meilisearch-core/Cargo.toml index 81b8e6c04..d814750b9 100644 --- a/meilisearch-core/Cargo.toml +++ b/meilisearch-core/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "meilisearch-core" version = "0.8.4" +license = "MIT" authors = ["Kerollmops "] edition = "2018" diff --git a/meilisearch-http/Cargo.toml b/meilisearch-http/Cargo.toml index 088b36c2f..f07119d30 100644 --- a/meilisearch-http/Cargo.toml +++ b/meilisearch-http/Cargo.toml @@ -1,6 +1,8 @@ [package] name = "meilisearch-http" +description = "MeiliSearch HTTP server" version = "0.8.4" +license = "MIT" authors = [ "Quentin de Quelen ", "Clément Renault ", diff --git a/meilisearch-schema/Cargo.toml b/meilisearch-schema/Cargo.toml index 1c721fc13..6c911511a 100644 --- a/meilisearch-schema/Cargo.toml +++ b/meilisearch-schema/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "meilisearch-schema" version = "0.8.4" +license = "MIT" authors = ["Kerollmops "] edition = "2018" diff --git a/meilisearch-tokenizer/Cargo.toml b/meilisearch-tokenizer/Cargo.toml index f8bebf56f..741878bdf 100644 --- a/meilisearch-tokenizer/Cargo.toml +++ b/meilisearch-tokenizer/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "meilisearch-tokenizer" version = "0.8.4" +license = "MIT" authors = ["Kerollmops "] edition = "2018" diff --git a/meilisearch-types/Cargo.toml b/meilisearch-types/Cargo.toml index 9bdc1dc5e..255433ca0 100644 --- a/meilisearch-types/Cargo.toml +++ b/meilisearch-types/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "meilisearch-types" version = "0.8.4" +license = "MIT" authors = ["Clément Renault "] edition = "2018"