Skip to content

Commit 758cd88

Browse files
authored
Merge pull request #262 from dutchcoders/BINARY-RELEASES
BINARY RELEASES
2 parents 0b27adb + f002099 commit 758cd88

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,25 @@ script:
1818
- go build -v .
1919
- go vet ./...
2020
- go test ./...
21+
22+
before_deploy:
23+
- mkdir -p release
24+
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-amd64"
25+
- "GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-armv7"
26+
- "GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-darwin-amd64"
27+
- "GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-win-amd64.exe"
28+
29+
deploy:
30+
provider: releases
31+
api_key:
32+
secure: cOuMGyvrl/9GX3TZFL+Vq++2Bv5Hlb3VfXSYONfeAj+1AXI3Y+tPruy/XnWpa1MUxkvFuIhea3sUAiKfwhHip9csCmMUhDJtaTU9apsxRkyF/OFrWb7/FlbnqYuAwnp91ImvtSlnubg2VHTjhBA6ycNQF7WZcJEMVMsAtC/nSY4=
33+
file:
34+
- "release/transfersh-$TRAVIS_TAG-linux-amd64"
35+
- "release/transfersh-$TRAVIS_TAG-linux-armv7"
36+
- "release/transfersh-$TRAVIS_TAG-darwin-amd64"
37+
- "release/transfersh-$TRAVIS_TAG-win-amd64.exe"
38+
skip_cleanup: true
39+
on:
40+
tags: true
41+
go: tip
42+
overwrite: true

0 commit comments

Comments
 (0)