We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfa8d3 commit 5ebf58fCopy full SHA for 5ebf58f
.gitignore
@@ -1 +1,3 @@
1
gron
2
+*.tgz
3
+*.swp
script/release
@@ -4,6 +4,8 @@ PROJDIR=$(cd `dirname $0`/.. && pwd)
4
TAG=${1}
5
USER="tomnomnom"
6
REPO="gron"
7
+BINARY="${REPO}"
8
+ARCHIVE="${BINARY}-linux-amd64-${TAG}.tgz"
9
10
if [[ -z "${TAG}" ]]; then
11
echo "Usage: ${0} <tag>"
@@ -17,6 +19,7 @@ fi
17
19
18
20
cd ${PROJDIR}
21
go build github.com/${USER}/${REPO}
22
+tar --create --gzip --file=${ARCHIVE} ${BINARY}
23
24
github-release release \
25
--user ${USER} \
@@ -30,5 +33,5 @@ github-release upload \
30
33
31
34
--repo ${REPO} \
32
35
--tag ${TAG} \
- --name "${REPO}-linux-amd64" \
- --file ${PROJDIR}/${REPO}
36
+ --name "${ARCHIVE}" \
37
+ --file ${PROJDIR}/${ARCHIVE}
0 commit comments