修改文件

pull/25/merge
Minho 2017-05-09 10:33:02 +08:00
parent 523bc7959e
commit ad6d55bcf7
1 changed files with 5 additions and 4 deletions

View File

@ -21,10 +21,11 @@ before_deploy:
- GOARCH=amd64 GOOS=linux go build -o godoc_linux_amd64 -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'" - GOARCH=amd64 GOOS=linux go build -o godoc_linux_amd64 -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'"
- GOARCH=amd64 GOOS=darwin go build -o godoc_darwin_amd64 -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'" - GOARCH=amd64 GOOS=darwin go build -o godoc_darwin_amd64 -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'"
- GOARCH=amd64 GOOS=windows go build -o godoc_windows_amd64.exe -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'" - GOARCH=amd64 GOOS=windows go build -o godoc_windows_amd64.exe -ldflags="-w -X main.VERSION=$TAG -X 'main.BUILD_TIME=`date`' -X 'main.GO_VERSION=`go version`'"
- rm -rf commands controllers models modules routers tasks vendor docs search utils graphics .git Godeps uploads/* .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md - rm -rf commands controllers models modules data routers tasks vendor docs search utils graphics .git Godeps uploads/* .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md
- zip -r godoc_linux_amd64.zip conf logs static uploads views godoc_linux_amd64 - cp conf/app.conf.example conf/app.conf
- zip -r godoc_darwin_amd64.zip conf logs static uploads views godoc_darwin_amd64 - zip -r godoc_linux_amd64.zip conf logs static uploads views lib godoc_linux_amd64
- zip -r godoc_windows_amd64.zip conf logs static uploads views godoc_windows_amd64.exe - zip -r godoc_darwin_amd64.zip conf logs static uploads views lib godoc_darwin_amd64
- zip -r godoc_windows_amd64.zip conf logs static uploads views lib godoc_windows_amd64.exe
deploy: deploy:
provider: releases provider: releases