Fix drone.yml
parent
9c40619f41
commit
c96fa3bfab
|
@ -8,17 +8,17 @@ matrix:
|
|||
GOARCH:
|
||||
- "amd64"
|
||||
pipeline:
|
||||
build:
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:${GO_VERSION}
|
||||
environment:
|
||||
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
|
||||
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:
|
||||
image: plugins/github-release
|
||||
secrets: [ github_token ]
|
||||
files: app/build/outputs/apk/app-debug.apk
|
||||
environment:
|
||||
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
|
||||
files: [ "${FILENAME}" ]
|
||||
when:
|
||||
event: tag
|
||||
|
|
Loading…
Reference in New Issue