Skip to content

Commit 2ece7b3

Browse files
authored
build: install coreutils and revert sha256 command format (#372)
Signed-off-by: Ben Stickel <[email protected]>
1 parent 731b836 commit 2ece7b3

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/releaser.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ jobs:
5353
# with:
5454
# p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
5555
# p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
56-
# -
57-
# name: Install gon via HomeBrew for code signing and app notarization
58-
# run: |
59-
# brew tap mitchellh/gon
60-
# brew install mitchellh/gon/gon
61-
# brew install coreutils
56+
-
57+
name: Install coreutils
58+
run: |
59+
brew install coreutils
6260
-
6361
name: Run GoReleaser
6462
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
@@ -146,7 +144,7 @@ jobs:
146144
#!/bin/bash
147145
shopt -s expand_aliases
148146
cd .dist
149-
sha256 *.tar.gz > checksums.txt
147+
sha256sum *.tar.gz > checksums.txt
150148
FILES="*"
151149
for f in $FILES;
152150
do
@@ -155,7 +153,7 @@ jobs:
155153
cosign sign-blob --key <(echo -n "${COSIGN_KEY}") "$f" > "$f.sig"
156154
;;
157155
*.tar.gz)
158-
sha256 "$f" | cut -d " " -f 4 > "$f.sha256"
156+
sha256sum "$f" | cut -d " " -f 1 > "$f.sha256"
159157
cosign sign-blob --key <(echo -n "${COSIGN_KEY}") "$f" > "$f.sig"
160158
;;
161159
esac

0 commit comments

Comments
 (0)