Skip to content

Commit 5ebf58f

Browse files
committed
Switches to tarball for binary releases
1 parent fcfa8d3 commit 5ebf58f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
gron
2+
*.tgz
3+
*.swp

script/release

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ PROJDIR=$(cd `dirname $0`/.. && pwd)
44
TAG=${1}
55
USER="tomnomnom"
66
REPO="gron"
7+
BINARY="${REPO}"
8+
ARCHIVE="${BINARY}-linux-amd64-${TAG}.tgz"
79

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

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

2124
github-release release \
2225
--user ${USER} \
@@ -30,5 +33,5 @@ github-release upload \
3033
--user ${USER} \
3134
--repo ${REPO} \
3235
--tag ${TAG} \
33-
--name "${REPO}-linux-amd64" \
34-
--file ${PROJDIR}/${REPO}
36+
--name "${ARCHIVE}" \
37+
--file ${PROJDIR}/${ARCHIVE}

0 commit comments

Comments
 (0)