From 8b285ad02b78c26d13fddfd4e50aeac0612ddcc0 Mon Sep 17 00:00:00 2001 From: Chris Penner Date: Mon, 24 Apr 2017 16:21:43 -0600 Subject: [PATCH] Fix tar output --- tools/attach-binary.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/attach-binary.sh b/tools/attach-binary.sh index 1327892..aa857b5 100644 --- a/tools/attach-binary.sh +++ b/tools/attach-binary.sh @@ -9,12 +9,13 @@ then exit 1 else echo "Attaching binary for $TRAVIS_OS_NAME to $TRAVIS_TAG..." - BIN="$(stack path --local-install-root)/bin/tempered" OWNER="$(echo "$TRAVIS_REPO_SLUG" | cut -f1 -d/)" REPO="$(echo "$TRAVIS_REPO_SLUG" | cut -f2 -d/)" + BIN="$(stack path --local-install-root)/bin/$REPO" BUNDLE_NAME="$REPO-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz" - chmod +x "$BIN" - tar -czf "$BUNDLE_NAME" "$BIN" + cp "$BIN" "./$REPO" + chmod +x "./$REPO" + tar -czf "$BUNDLE_NAME" "$REPO" echo "SHA256:" shasum -a 256 "$BUNDLE_NAME" ghr -t "$GITHUB_TOKEN" -u "$OWNER" -r "$REPO" --replace "$(git describe --tags)" "$BUNDLE_NAME"