File tree 3 files changed +25
-16
lines changed
3 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 2
2
go-hash
3
3
go-hash.iml
4
4
vendor /
5
+ releases /
Original file line number Diff line number Diff line change @@ -4,7 +4,21 @@ notifications:
4
4
email : false
5
5
go :
6
6
- 1.9.x
7
-
8
7
install :
9
8
- go get -u github.com/golang/dep/cmd/dep
10
9
- dep ensure
10
+ before_deploy :
11
+ - make release
12
+ deploy :
13
+ provider : releases
14
+ api_key :
15
+ secure : AgvsYpVTF3DsFEYTlccuaMjRySn7GyS/p5JF0C9AMZWKqPuN78tmEAuFtUeiShDotmYb8ReQXalXEY0lkkoUpIJ2YM7ATGVewp6pTvwogoB34XEWceRKiLloIogx0b13Vrjt1lbLzCAfri6PAE68p1+B30pzCBZCn5O64QQtAxklhpOJKInwH2rTBg/BGdWdH0dY/TaR6UfQAjNvtwY3pnO+bGW287aZKzAjlqw5ay9slvwS7kAxtuB9UOFWeEFzGLNoJeSDZBrucUDzUSjHFTdniJBPH3znyN+zurK+3ufLFJtX5/eg71M3QtXFzEXGbDeDNdSSQ6NA3nh41CzLScZP2N0eBeDkO+OSZ49UbAv4tABxLY1sAqSxKzeHIg8b8zZtfFuku4gKbbKgjJGXvaqzIlmjykM0WYGTjqneQNaQK4ksiVss65T4BH+FslBg0Lkt58UJ9bU3rPS9nUci/+h5V6tggW6Kq9zKqmjtpcRmEn2w4Jy3VmmXHuH+lBe5+xMim8xrdFcVPBlNxfmy+g2nHDhlnXBEVAfoJPpNHP7nc3CGuirzd0xL2/mzEFUjpWJD6ZOjXRYmdIsaJxicPfHBlZD7dPFBwt27s0e9WljumLVZ2opT/RgnlfndPH6OzYiJPj0c4kh0fU8GZP9Sjk3XrlYzUtGKWRaSudBTleQ=
16
+ file :
17
+ - releases/go-hash-darwin-amd64
18
+ - releases/go-hash-linux-amd64
19
+ - releases/go-hash-linux-386
20
+ - releases/go-hash-windows-amd64
21
+ - releases/go-hash-windows-386
22
+
23
+ on :
24
+ repo : renatoathaydes/go-hash
Original file line number Diff line number Diff line change @@ -13,23 +13,17 @@ test:
13
13
go test ./...
14
14
15
15
# build a smaller executable without symbols and debug info for all supported OSs and ARCHs
16
- .PHONY : check-version release release-linux release-windows release-darwin
16
+ .PHONY : release release-linux release-windows release-darwin
17
17
18
- check-version :
19
- ifndef VERSION
20
- $(error VERSION not set. Run make with 'VERSION=x.x.x make ...')
21
- endif
22
- @:
18
+ release-linux :
19
+ env GOOS=linux env GOARCH=amd64 go build -ldflags " -s -w" -o releases/go-hash-linux-amd64
20
+ env GOOS=linux env GOARCH=386 go build -ldflags " -s -w" -o releases/go-hash-linux-386
23
21
24
- release-linux : check-version
25
- env GOOS=linux env GOARCH=amd64 go build -ldflags " -s -w" -o releases/linux-amd64/ $( VERSION ) / go-hash
26
- env GOOS=linux env GOARCH=386 go build -ldflags " -s -w" -o releases/linux-386/ $( VERSION ) / go-hash
22
+ release-windows :
23
+ env GOOS=windows env GOARCH=amd64 go build -ldflags " -s -w" -o releases/go-hash-windows-amd64
24
+ env GOOS=windows env GOARCH=386 go build -ldflags " -s -w" -o releases/go-hash-windows-386
27
25
28
- release-windows : check-version
29
- env GOOS=windows env GOARCH=amd64 go build -ldflags " -s -w" -o releases/windows-amd64/$(VERSION ) /go-hash
30
- env GOOS=windows env GOARCH=386 go build -ldflags " -s -w" -o releases/windows-386/$(VERSION ) /go-hash
31
-
32
- release-darwin : check-version
33
- env GOOS=darwin env GOARCH=amd64 go build -ldflags " -s -w" -o releases/darwin-amd64/$(VERSION ) /go-hash
26
+ release-darwin :
27
+ env GOOS=darwin env GOARCH=amd64 go build -ldflags " -s -w" -o releases/go-hash-darwin-amd64
34
28
35
29
release : test release-linux release-windows release-darwin
You can’t perform that action at this time.
0 commit comments