diff --git a/tools/attach-binary.sh b/tools/attach-binary.sh index 9c81578..1327892 100644 --- a/tools/attach-binary.sh +++ b/tools/attach-binary.sh @@ -12,9 +12,9 @@ else BIN="$(stack path --local-install-root)/bin/tempered" OWNER="$(echo "$TRAVIS_REPO_SLUG" | cut -f1 -d/)" REPO="$(echo "$TRAVIS_REPO_SLUG" | cut -f2 -d/)" - BUNDLE_NAME="$REPO-$TRAVIS_TAG-$TRAVIS_OS_NAME.gz" + BUNDLE_NAME="$REPO-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz" chmod +x "$BIN" - gzip --best --to-stdout "$BIN" > "$BUNDLE_NAME" + tar -czf "$BUNDLE_NAME" "$BIN" echo "SHA256:" shasum -a 256 "$BUNDLE_NAME" ghr -t "$GITHUB_TOKEN" -u "$OWNER" -r "$REPO" --replace "$(git describe --tags)" "$BUNDLE_NAME"