update deploy script

This commit is contained in:
deepzz0
2016-12-24 21:31:26 +08:00
parent 04e0888f80
commit 084948510b
4 changed files with 26 additions and 8 deletions

10
before_deploy.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
VERSION=`git describe --tags`
tar zcvf eiblog-$VERSION-linux-amd64.tar.gz conf static views eiblog
GOOS=windows GOARCH=amd64 go build && \
tar zcvf eiblog-$VERSION-windows-amd64.tar.gz conf static views eiblog
GOOS=darwin GOARCH=amd64 go build && \
tar zcvf eiblog-$VERSION-darwin-amd64.tar.gz conf static views eiblog