Skip to content

Commit

Permalink
fix sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed May 18, 2018
1 parent 3a524db commit 8db066e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ clean:


.git-release-$(VERSION): $(BINARIES)
set -e -o pipefail ; \
shasum -a256 $(BINARIES) | sed -e 's^dist/^^' | \
@set -e -o pipefail ; \
shasum -a256 $(BINARIES) | sed -e 's^dist/^^' -e 's/-$(VERSION)-/-/' | \
jq --raw-input --slurp \
--arg tag $(TAG) \
--arg release $(VERSION) \
Expand All @@ -44,7 +44,8 @@ clean:
$(GITHUB_API)/releases

release: check-release .git-release-$(VERSION)
for BINARY in $(BINARIES); do \
@for BINARY in $(BINARIES); do \
echo "INFO: uploading $$BINARY.." ; \
curl --fail -sS \
--data-binary @$$BINARY \
-o /dev/null \
Expand All @@ -53,7 +54,7 @@ release: check-release .git-release-$(VERSION)
-H 'Content-Type: application/octet-stream' \
$(GITHUB_UPLOAD)/releases/$(shell jq -r .id .git-release-$(VERSION))/assets?name=$$(basename $${BINARY} | sed -e 's/-$(VERSION)-/-/') ; \
done
curl --fail -sS \
@curl --fail -sS \
-d '{"draft": false}' \
-o /dev/null \
-X PATCH \
Expand Down

0 comments on commit 8db066e

Please sign in to comment.