Browse Source

Fix drone.yml

master
Ambrose Chua 4 years ago
parent
commit
c96fa3bfab
  1. 8
      .drone.yml

8
.drone.yml

@ -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…
Cancel
Save