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"