mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
ed185fb636
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Publish deb pkg to GitHub release & APT repository & Homebrew
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
debian:
|
|
name: Publish debian packagge
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: hecrj/setup-rust-action@master
|
|
with:
|
|
rust-version: stable
|
|
- name: Install cargo-deb
|
|
run: cargo install cargo-deb
|
|
- uses: actions/checkout@v3
|
|
- 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 }}
|
|
- name: Upload debian pkg to apt repository
|
|
run: curl -F package=@target/debian/meilisearch.deb https://${{ secrets.GEMFURY_PUSH_TOKEN }}@push.fury.io/meilisearch/
|
|
|
|
homebrew:
|
|
name: Bump Homebrew formula
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Create PR to Homebrew
|
|
uses: mislav/bump-homebrew-formula-action@v1
|
|
with:
|
|
formula-name: meilisearch
|
|
env:
|
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
|