Skip to content

Commit

Permalink
Fix an issue with incorrect sha
Browse files Browse the repository at this point in the history
  • Loading branch information
semanser committed Jan 9, 2025
1 parent 4674db7 commit 8f09f8a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ jobs:
with:
name: macos-arm64
path: dist/macos-arm64

- name: Compute Checksums
id: checksums
run: |
ARM64_SHA256=$(sha256sum dist/macos-arm64/depshub-darwin-arm64 | awk '{print $1}')
AMD64_SHA256=$(sha256sum dist/macos-amd64/depshub-darwin-amd64 | awk '{print $1}')
echo "ARM64_SHA256=$ARM64_SHA256" >> $GITHUB_ENV
echo "AMD64_SHA256=$AMD64_SHA256" >> $GITHUB_ENV
- name: Create Homebrew Formula
run: |
Expand All @@ -115,19 +123,21 @@ jobs:
desc "DepsHub is a tool to manage your dependencies"
homepage "https://github.com/DepsHubHQ/depshub"
version "${{ inputs.version }}"
license "AGPL-3.0"
on_macos do
on_arm do
url "https://github.com/DepsHubHQ/depshub/releases/download/v${{ inputs.version }}/depshub-darwin-arm64"
sha256 "#{%x(sha256sum dist/macos-arm64/depshub-darwin-arm64).split.first}"
sha256 "${{ env.ARM64_SHA256 }}"
end
on_intel do
url "https://github.com/DepsHubHQ/depshub/releases/download/v${{ inputs.version }}/depshub-darwin-amd64"
sha256 "#{%x(sha256sum dist/macos-amd64/depshub-darwin-amd64).split.first}"
sha256 "${{ env.AMD64_SHA256 }}"
end
end
def install
mv "depshub-darwin-#{Hardware::CPU.arch}", "depshub"
bin.install "depshub"
end
end
Expand Down

0 comments on commit 8f09f8a

Please sign in to comment.