From cd9f26ce3e7d2cc0e78714837e641836b9a0d388 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 12 Jan 2022 21:46:06 +0100 Subject: [PATCH] feat(ci): set up Homebrew release CI. #897 --- .github/workflows/release.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3f2ae8..195608c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -234,8 +234,7 @@ jobs: gh release upload ${{ needs.extract-version.outputs.espanso_version }} Espanso-Mac-M1.zip Espanso-Mac-M1.zip.sha256.txt macos-publish-homebrew: - # TODO: update to include the two previous macos builds - needs: ["extract-version", "create-release"] + needs: ["extract-version", "create-release", "macos-m1", "macos-intel"] runs-on: macos-11 steps: @@ -248,12 +247,10 @@ jobs: uses: webfactory/ssh-agent@fc49353b67b2b7c1e0e6a600572d01a69f2672dd with: ssh-private-key: ${{ secrets.HOMEBREW_CASK_SSH_PRIVATE_KEY }} + - name: Create and Publish Homebrew Cask - # TODO: re-add the check - # if: ${{ github.ref == 'refs/heads/master' }} - # TODO: use the right version: - # VERSION="${{ needs.extract-version.outputs.espanso_version }}" ./scripts/publish_homebrew_version.sh + if: ${{ github.ref == 'refs/heads/master' }} run: | - VERSION="v2.1.2-alpha" ./scripts/publish_homebrew_version.sh + VERSION="${{ needs.extract-version.outputs.espanso_version }}" ./scripts/publish_homebrew_version.sh echo "Cask formula has been published here: " \ No newline at end of file