MeiliSearch/.github/workflows/publish-deb-brew-pkg.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

name: Publish deb pkg to GitHub release & APT repository & Homebrew
2019-12-04 14:32:18 +01:00
on:
release:
2020-07-21 14:39:12 +02:00
types: [released]
2019-12-04 14:32:18 +01:00
jobs:
check-version:
name: Check the version validity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check release validity
2022-06-23 19:14:39 +02:00
run: bash .github/scripts/check-release.sh
2020-03-20 12:14:08 +01:00
debian:
2019-12-04 14:32:18 +01:00
name: Publish debian packagge
2022-08-29 18:26:01 +02:00
runs-on: ubuntu-20.04
needs: check-version
2019-12-04 14:32:18 +01:00
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: stable
- name: Install cargo-deb
run: cargo install cargo-deb
- uses: actions/checkout@v3
2019-12-04 14:32:18 +01: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:
2022-09-04 11:32:22 +02:00
repo_token: ${{ secrets.MEILI_BOT_GH_PAT }}
2019-12-04 14:32:18 +01:00
file: target/debian/meilisearch.deb
asset_name: meilisearch.deb
tag: ${{ github.ref }}
- 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
2022-08-29 18:26:01 +02:00
runs-on: ubuntu-20.04
needs: check-version
2020-03-20 12:14:08 +01:00
steps:
- 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 }}