Fix drone.yml
parent
9c40619f41
commit
c96fa3bfab
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue