File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change
1
+ module github.com/tomnomnom/httprobe
2
+
3
+ go 1.18
Original file line number Diff line number Diff line change @@ -26,24 +26,15 @@ if [ $? -ne 0 ]; then
26
26
exit 3
27
27
fi
28
28
29
- # Check if tag exists
30
- git fetch --tags
31
- git tag | grep " ^${TAG} $"
32
-
33
- if [ $? -ne 0 ]; then
34
- github-release release \
35
- --user ${USER} \
36
- --repo ${REPO} \
37
- --tag ${TAG} \
38
- --name " ${REPO} ${TAG} " \
39
- --description " ${TAG} " \
40
- --pre-release
41
- fi
42
-
29
+ FILELIST=" "
43
30
44
31
for ARCH in " amd64" " 386" ; do
45
32
for OS in " darwin" " linux" " windows" " freebsd" ; do
46
33
34
+ if [[ " ${OS} " == " darwin" && " ${ARCH} " == " 386" ]]; then
35
+ continue
36
+ fi
37
+
47
38
BINFILE=" ${BINARY} "
48
39
49
40
if [[ " ${OS} " == " windows" ]]; then
@@ -57,18 +48,16 @@ for ARCH in "amd64" "386"; do
57
48
if [[ " ${OS} " == " windows" ]]; then
58
49
ARCHIVE=" ${BINARY} -${OS} -${ARCH} -${VERSION} .zip"
59
50
zip ${ARCHIVE} ${BINFILE}
51
+ rm ${BINFILE}
60
52
else
61
53
ARCHIVE=" ${BINARY} -${OS} -${ARCH} -${VERSION} .tgz"
62
54
tar --create --gzip --file=${ARCHIVE} ${BINFILE}
63
55
fi
64
56
65
- echo " Uploading ${ARCHIVE} ..."
66
- github-release upload \
67
- --user ${USER} \
68
- --repo ${REPO} \
69
- --tag ${TAG} \
70
- --name " ${ARCHIVE} " \
71
- --file ${PROJDIR} /${ARCHIVE}
57
+ FILELIST=" ${FILELIST} ${PROJDIR} /${ARCHIVE} "
72
58
done
73
59
done
74
60
61
+ gh release create ${TAG} ${FILELIST}
62
+ rm ${FILELIST}
63
+
You can’t perform that action at this time.
0 commit comments