diff --git a/.github/workflows/go.build.yaml b/.github/workflows/go.build.yaml index 32a3247..561c285 100644 --- a/.github/workflows/go.build.yaml +++ b/.github/workflows/go.build.yaml @@ -72,13 +72,13 @@ jobs: artifactContentType: application/zip generateReleaseNotes: false makeLatest: true - name: Release ${{ github.ref }} + name: Release ${{ github.ref_name }} - name: Calculate checksums (darwin) id: calculate-checksums-darwin run: | - echo "darwin_amd64_sha256sum=$(sha256sum --quiet beach_darwin_amd64.zip)" >> $GITHUB_OUTPUT - echo "darwin_arm64_sha256sum=$(sha256sum --quiet beach_darwin_arm64.zip)" >> $GITHUB_OUTPUT + echo "darwin_amd64_sha256sum=$(sha256sum beach_darwin_amd64.zip | awk '//{print $1}')" >> $GITHUB_OUTPUT + echo "darwin_arm64_sha256sum=$(sha256sum beach_darwin_arm64.zip | awk '//{print $1}')" >> $GITHUB_OUTPUT - name: Calculate checksum (linux) id: calculate-checksums-linux diff --git a/.github/workflows/localbeach.rb.tpl b/.github/workflows/localbeach.rb.tpl index 8203e5c..38806b1 100644 --- a/.github/workflows/localbeach.rb.tpl +++ b/.github/workflows/localbeach.rb.tpl @@ -9,6 +9,9 @@ class Localbeach < Formula version "{{VERSION}}" license "GPL-3.0-or-later" + depends_on "mkcert" + depends_on "nss" + on_macos do on_intel do url "https://github.com/flownative/localbeach/releases/download/v{{VERSION}}/beach_darwin_amd64.zip" @@ -25,17 +28,18 @@ class Localbeach < Formula sha256 "{{LINUX_SHA256SUM}}" end - depends_on "mkcert" - depends_on "nss" - def install bin.install "beach" => "beach" end def caveats <<~EOS - Local Beach is built on top of Docker and Docker Compose. - You will need a working setup of both in order to use Local Beach. + Local Beach is built on top of Docker and Docker Compose. + You will need a working setup of both in order to use Local Beach. EOS end + + test do + assert_match "Local Beach v{{VERSION}}", shell_output("#{bin}/beach version") + end end