summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-x.circleci/release.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/.circleci/release.sh b/.circleci/release.sh
index a47f027..2632760 100755
--- a/.circleci/release.sh
+++ b/.circleci/release.sh
@@ -4,11 +4,14 @@ set -o nounset -o errexit -o pipefail
TAG="$1"
SUFFIX="linux-$(uname -m)"
USER="jaspervdj"
-REPOSITORY="$(basename "$(pwd)")"
+REPOSITORY="$(basename *.cabal ".cabal")"
BINARY="$REPOSITORY"
echo "Tag: $TAG"
echo "Suffix: $SUFFIX"
+echo "Repository: $REPOSITORY"
+
+$BINARY --version
if [[ -z "$TAG" ]]; then
echo "Not a tagged build, skipping release..."
@@ -26,7 +29,7 @@ unzip ghr_${GHR_VERSION}_linux_386.zip
PACKAGE="$REPOSITORY-$TAG-$SUFFIX"
mkdir -p "$PACKAGE"
cp "$(which "$BINARY")" "$PACKAGE"
-cp "README.*" "$PACKAGE"
+cp README.* "$PACKAGE"
tar -czf "$PACKAGE.tar.gz" "$PACKAGE"
rm -r "$PACKAGE"