feat(ci): set up Homebrew release CI. #897
This commit is contained in:
parent
54bfed4c11
commit
cd9f26ce3e
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
@ -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: "
|
Loading…
Reference in New Issue
Block a user