1
0
Fork 0
forward/.drone.yml

25 lines
533 B
YAML
Raw Normal View History

2018-03-26 20:23:28 +08:00
matrix:
GO_VERSION:
- "1.10"
GOOS:
- "windows"
- "linux"
- "darwin"
GOARCH:
- "amd64"
pipeline:
build:
image: golang:${GO_VERSION}
environment:
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
commands:
2018-03-26 20:29:07 +08:00
- go build -ldflags "-s -w" -o "${FILENAME/windows-amd64/windows-amd64.exe}"
2018-03-26 20:23:28 +08:00
release:
image: plugins/github-release
secrets: [ github_token ]
2018-03-26 20:29:07 +08:00
environment:
- FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
files: [ "${FILENAME}" ]
2018-03-26 20:23:28 +08:00
when:
event: tag