mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-12 17:32:27 +08:00
update deploy script
This commit is contained in:
10
before_deploy.sh
Executable file
10
before_deploy.sh
Executable 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
|
||||
Reference in New Issue
Block a user