1
0
Fork 0

Fix drone.yml

master
Ambrose Chua 2018-03-26 20:29:07 +08:00
parent 9c40619f41
commit c96fa3bfab
1 changed files with 4 additions and 4 deletions

View File

@ -8,17 +8,17 @@ matrix:
GOARCH: GOARCH:
- "amd64" - "amd64"
pipeline: pipeline:
build:
pipeline:
build: build:
image: golang:${GO_VERSION} image: golang:${GO_VERSION}
environment: environment:
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH} - FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
commands: commands:
- go build -ldflags "-s -w" -o ${FILENAME/windows-amd64/windows-amd64.exe} - go build -ldflags "-s -w" -o "${FILENAME/windows-amd64/windows-amd64.exe}"
release: release:
image: plugins/github-release image: plugins/github-release
secrets: [ github_token ] secrets: [ github_token ]
files: app/build/outputs/apk/app-debug.apk environment:
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
files: [ "${FILENAME}" ]
when: when:
event: tag event: tag