Add debian package in CI

This commit is contained in:
Thomas Payet 2019-12-04 14:32:18 +01:00
parent fc8182d7d3
commit 51636402c2
7 changed files with 35 additions and 1 deletions

View File

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

28
.github/workflows/publish-deb-pkg.yml vendored Normal file
View File

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

View File

@ -1,6 +1,7 @@
[package]
name = "meilisearch-core"
version = "0.8.4"
license = "MIT"
authors = ["Kerollmops <clement@meilisearch.com>"]
edition = "2018"

View File

@ -1,6 +1,8 @@
[package]
name = "meilisearch-http"
description = "MeiliSearch HTTP server"
version = "0.8.4"
license = "MIT"
authors = [
"Quentin de Quelen <quentin@dequelen.me>",
"Clément Renault <clement@meilisearch.com>",

View File

@ -1,6 +1,7 @@
[package]
name = "meilisearch-schema"
version = "0.8.4"
license = "MIT"
authors = ["Kerollmops <renault.cle@gmail.com>"]
edition = "2018"

View File

@ -1,6 +1,7 @@
[package]
name = "meilisearch-tokenizer"
version = "0.8.4"
license = "MIT"
authors = ["Kerollmops <renault.cle@gmail.com>"]
edition = "2018"

View File

@ -1,6 +1,7 @@
[package]
name = "meilisearch-types"
version = "0.8.4"
license = "MIT"
authors = ["Clément Renault <renault.cle@gmail.com>"]
edition = "2018"