Skip to content

Commit

Permalink
Add a release script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisMontagne committed Feb 11, 2015
1 parent 11ca2c2 commit 41b45e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions release
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

export GOPATH=`pwd`/Godeps/_workspace:$GOPATH
version=$1

git tag v$version

GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o envtmpl-linux-amd64-$version .
GOOS=darwin CGO_ENABLED=0 GOARCH=amd64 go build -o envtmpl-darwin-amd64-$version .

hub release create -a envtmpl-linux-amd64-$version envtmpl-darwin-amd64-$version v$version

rm envtmpl-*

0 comments on commit 41b45e2

Please sign in to comment.