2020-05-05 23:33:39 +02:00
|
|
|
name: Publish deb pkg to GitHub release & APT repository & Homebrew
|
2019-12-04 14:32:18 +01:00
|
|
|
|
|
|
|
on:
|
2020-05-05 23:33:39 +02:00
|
|
|
release:
|
|
|
|
types: [published]
|
2019-12-04 14:32:18 +01:00
|
|
|
|
|
|
|
jobs:
|
2020-03-20 12:14:08 +01:00
|
|
|
debian:
|
2019-12-04 14:32:18 +01:00
|
|
|
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 }}
|
2019-12-05 14:02:36 +01:00
|
|
|
- name: Upload debian pkg to apt repository
|
|
|
|
run: curl -F package=@target/debian/meilisearch.deb https://${{ secrets.GEMFURY_PUSH_TOKEN }}@push.fury.io/meilisearch/
|
2020-03-20 12:14:08 +01:00
|
|
|
|
|
|
|
homebrew:
|
|
|
|
name: Bump Homebrew formula
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-05 23:33:39 +02:00
|
|
|
- name: Create PR to Homebrew
|
|
|
|
uses: mislav/bump-homebrew-formula-action@v1
|
2020-03-20 12:14:08 +01:00
|
|
|
with:
|
|
|
|
formula-name: meilisearch
|
|
|
|
env:
|
|
|
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
|