2020-05-06 05:33:39 +08:00
|
|
|
name: Publish deb pkg to GitHub release & APT repository & Homebrew
|
2019-12-04 21:32:18 +08:00
|
|
|
|
|
|
|
on:
|
2020-05-06 05:33:39 +08:00
|
|
|
release:
|
2020-07-21 20:39:12 +08:00
|
|
|
types: [released]
|
2019-12-04 21:32:18 +08:00
|
|
|
|
|
|
|
jobs:
|
2022-06-17 01:27:27 +08:00
|
|
|
check-version:
|
|
|
|
name: Check the version validity
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Check release validity
|
2022-06-24 01:14:39 +08:00
|
|
|
run: bash .github/scripts/check-release.sh
|
2022-06-17 01:27:27 +08:00
|
|
|
|
2020-03-20 19:14:08 +08:00
|
|
|
debian:
|
2019-12-04 21:32:18 +08:00
|
|
|
name: Publish debian packagge
|
2022-10-06 16:13:50 +08:00
|
|
|
runs-on: ubuntu-18.04
|
2022-06-17 01:27:27 +08:00
|
|
|
needs: check-version
|
2019-12-04 21:32:18 +08:00
|
|
|
steps:
|
|
|
|
- uses: hecrj/setup-rust-action@master
|
|
|
|
with:
|
|
|
|
rust-version: stable
|
|
|
|
- name: Install cargo-deb
|
|
|
|
run: cargo install cargo-deb
|
2022-06-29 04:21:41 +08:00
|
|
|
- uses: actions/checkout@v3
|
2019-12-04 21:32:18 +08:00
|
|
|
- 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 21:02:36 +08: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 19:14:08 +08:00
|
|
|
|
|
|
|
homebrew:
|
|
|
|
name: Bump Homebrew formula
|
2022-10-06 16:13:50 +08:00
|
|
|
runs-on: ubuntu-18.04
|
2022-06-17 01:27:27 +08:00
|
|
|
needs: check-version
|
2020-03-20 19:14:08 +08:00
|
|
|
steps:
|
2020-05-06 05:33:39 +08:00
|
|
|
- name: Create PR to Homebrew
|
|
|
|
uses: mislav/bump-homebrew-formula-action@v1
|
2020-03-20 19:14:08 +08:00
|
|
|
with:
|
|
|
|
formula-name: meilisearch
|
|
|
|
env:
|
|
|
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
|