mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-05 02:55:46 +01:00
a9230f6e6c
Bumps [mislav/bump-homebrew-formula-action](https://github.com/mislav/bump-homebrew-formula-action) from 2 to 3. - [Release notes](https://github.com/mislav/bump-homebrew-formula-action/releases) - [Commits](https://github.com/mislav/bump-homebrew-formula-action/compare/v2...v3) --- updated-dependencies: - dependency-name: mislav/bump-homebrew-formula-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
name: Publish to APT & Homebrew
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
check-version:
|
|
name: Check the version validity
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check release validity
|
|
run: bash .github/scripts/check-release.sh
|
|
|
|
debian:
|
|
name: Publish debian packagge
|
|
runs-on: ubuntu-latest
|
|
needs: check-version
|
|
container:
|
|
# Use ubuntu-18.04 to compile with glibc 2.27
|
|
image: ubuntu:18.04
|
|
steps:
|
|
- name: Install needed dependencies
|
|
run: |
|
|
apt-get update && apt-get install -y curl
|
|
apt-get install build-essential -y
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install cargo-deb
|
|
run: cargo install cargo-deb
|
|
- uses: actions/checkout@v3
|
|
- name: Build deb package
|
|
run: cargo deb -p meilisearch -o target/debian/meilisearch.deb
|
|
- name: Upload debian pkg to release
|
|
uses: svenstaro/upload-release-action@2.7.0
|
|
with:
|
|
repo_token: ${{ secrets.MEILI_BOT_GH_PAT }}
|
|
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-latest
|
|
needs: check-version
|
|
steps:
|
|
- name: Create PR to Homebrew
|
|
uses: mislav/bump-homebrew-formula-action@v3
|
|
with:
|
|
formula-name: meilisearch
|
|
formula-path: Formula/m/meilisearch.rb
|
|
env:
|
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
|