Skip to content

Commit

Permalink
Switches to tarball for binary releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jun 6, 2016
1 parent fcfa8d3 commit 5ebf58f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
gron
*.tgz
*.swp
7 changes: 5 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PROJDIR=$(cd `dirname $0`/.. && pwd)
TAG=${1}
USER="tomnomnom"
REPO="gron"
BINARY="${REPO}"
ARCHIVE="${BINARY}-linux-amd64-${TAG}.tgz"

if [[ -z "${TAG}" ]]; then
echo "Usage: ${0} <tag>"
Expand All @@ -17,6 +19,7 @@ fi

cd ${PROJDIR}
go build github.com/${USER}/${REPO}
tar --create --gzip --file=${ARCHIVE} ${BINARY}

github-release release \
--user ${USER} \
Expand All @@ -30,5 +33,5 @@ github-release upload \
--user ${USER} \
--repo ${REPO} \
--tag ${TAG} \
--name "${REPO}-linux-amd64" \
--file ${PROJDIR}/${REPO}
--name "${ARCHIVE}" \
--file ${PROJDIR}/${ARCHIVE}

0 comments on commit 5ebf58f

Please sign in to comment.