Skip to content

Commit

Permalink
Bump release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Dec 26, 2017
1 parent 07764f6 commit e456de9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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"

Expand Down

0 comments on commit e456de9

Please sign in to comment.