From 8db066e5b7d332f5ca4bc6e72f12cacde6f068cd Mon Sep 17 00:00:00 2001 From: Mark van Holsteijn Date: Fri, 18 May 2018 20:07:52 +0200 Subject: [PATCH] fix sha256 --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6f5a879..10c98f0 100644 --- a/Makefile +++ b/Makefile @@ -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) \ @@ -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 \ @@ -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 \