From 4cdb67c2495bbfb73e0681deaad6f87313b0ee05 Mon Sep 17 00:00:00 2001 From: Clementine Urquizar Date: Fri, 20 Mar 2020 12:14:08 +0100 Subject: [PATCH] Automate homebrew publish --- ...ish-deb-pkg.yml => publish-deb-brew-pkg.yml} | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) rename .github/workflows/{publish-deb-pkg.yml => publish-deb-brew-pkg.yml} (68%) diff --git a/.github/workflows/publish-deb-pkg.yml b/.github/workflows/publish-deb-brew-pkg.yml similarity index 68% rename from .github/workflows/publish-deb-pkg.yml rename to .github/workflows/publish-deb-brew-pkg.yml index 8a10dd95f..1f2def546 100644 --- a/.github/workflows/publish-deb-pkg.yml +++ b/.github/workflows/publish-deb-brew-pkg.yml @@ -1,15 +1,14 @@ -name: Publish deb pkg to GitHub release & apt repository +name: Publish deb pkg to GitHub release & apt repository & Homebrew on: push: tags: - - '*' + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: - publish: + debian: name: Publish debian packagge runs-on: ubuntu-latest - steps: - uses: hecrj/setup-rust-action@master with: @@ -28,3 +27,13 @@ jobs: 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 + steps: + - uses: mislav/bump-homebrew-formula-action@v1 + with: + formula-name: meilisearch + env: + COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}