Skip to content

Commit a67c954

Browse files
author
mritd
authored
Merge pull request #6 from mritd/develop
chore(release): add release script
2 parents 3167a1d + c3529d4 commit a67c954

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ ! -n "$1" ]; then
4+
echo "Error:release version is blank!"
5+
exit 1
6+
fi
7+
8+
gox -osarch="darwin/amd64 linux/386 linux/amd64" -output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
9+
ghr -u mritd -t $GITHUB_RELEASE_TOKEN -replace -recreate --debug $1 dist/

0 commit comments

Comments
 (0)