1
0
Fork 0

Another attempt at fixing drone

master
Ambrose Chua 2018-03-26 21:55:37 +08:00
parent a5bb7b80d5
commit 0a5cdd667e
1 changed files with 2 additions and 1 deletions

View File

@ -14,10 +14,11 @@ pipeline:
pull: true pull: true
commands: commands:
- export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH} - export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
- if [ "$GOOS" == "windows" ]; then export FILENAME=$FILENAME.exe; fi - if [[ "$GOOS" == "windows" ]]; then export FILENAME=$FILENAME.exe; fi
- go version - go version
- ls -lah - ls -lah
- ls vendor/ - ls vendor/
- env
- go build -ldflags "-s -w" -o dist/$FILENAME - go build -ldflags "-s -w" -o dist/$FILENAME
release: release:
image: plugins/github-release image: plugins/github-release