Skip to content

Commit

Permalink
Merge pull request #6 from mritd/develop
Browse files Browse the repository at this point in the history
chore(release): add release script
  • Loading branch information
mritd authored Apr 26, 2018
2 parents 3167a1d + c3529d4 commit a67c954
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ ! -n "$1" ]; then
echo "Error:release version is blank!"
exit 1
fi

gox -osarch="darwin/amd64 linux/386 linux/amd64" -output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
ghr -u mritd -t $GITHUB_RELEASE_TOKEN -replace -recreate --debug $1 dist/

0 comments on commit a67c954

Please sign in to comment.