Skip to content

Commit

Permalink
Upgrade goreleaser config (#431)
Browse files Browse the repository at this point in the history
* Upgrade goreleaser config

* Improve brew formula
  • Loading branch information
stanislas-m committed Aug 27, 2019
1 parent afc9671 commit 2f9268d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 26 deletions.
34 changes: 21 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Edit .goreleaser.yml.plush instead

builds:
- binary: soda
- id: pop_darwin
binary: soda
main: soda/main.go
goos:
- darwin
Expand All @@ -16,7 +17,8 @@ builds:
- -tags
- sqlite

- binary: soda
- id: pop_linux
binary: soda
main: soda/main.go
env:
- CGO_ENABLED=1
Expand All @@ -29,7 +31,8 @@ builds:
- amd64
- 386

- binary: soda
- id: pop_windows_i686
binary: soda
main: soda/main.go
ldflags:
- "-extldflags '-static'"
Expand All @@ -45,7 +48,8 @@ builds:
goarch:
- 386

- binary: soda
- id: pop_windows_x64
binary: soda
main: soda/main.go
ldflags:
- "-extldflags '-static'"
Expand All @@ -61,11 +65,11 @@ builds:
goarch:
- amd64

archive:
format: tar.gz
format_overrides:
- goos: windows
format: zip
archives:
-
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
Expand All @@ -80,7 +84,11 @@ changelog:
- '^docs:'
- '^test:'

brew:
github:
owner: gobuffalo
name: homebrew-tap
brews:
-
github:
owner: gobuffalo
name: homebrew-tap
homepage: "https://gobuffalo.io/docs/db/getting-started"
description: "A Tasty Treat For All Your Database Needs"
skip_upload: "auto"
34 changes: 21 additions & 13 deletions .goreleaser.yml.plush
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
builds:
- binary: soda
- id: pop_darwin
binary: soda
main: soda/main.go
goos:
- darwin
Expand All @@ -13,7 +14,8 @@ builds:
- -tags
- sqlite

- binary: soda
- id: pop_linux
binary: soda
main: soda/main.go
env:
- CGO_ENABLED=1
Expand All @@ -26,7 +28,8 @@ builds:
- amd64
- 386

- binary: soda
- id: pop_windows_i686
binary: soda
main: soda/main.go
ldflags:
- "-extldflags '-static'"
Expand All @@ -42,7 +45,8 @@ builds:
goarch:
- 386

- binary: soda
- id: pop_windows_x64
binary: soda
main: soda/main.go
ldflags:
- "-extldflags '-static'"
Expand All @@ -58,11 +62,11 @@ builds:
goarch:
- amd64

archive:
format: tar.gz
format_overrides:
- goos: windows
format: zip
archives:
-
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
Expand All @@ -77,8 +81,12 @@ changelog:
- '^docs:'
- '^test:'
<%= if (brew) { %>
brew:
github:
owner: gobuffalo
name: homebrew-tap
brews:
-
github:
owner: gobuffalo
name: homebrew-tap
homepage: "https://gobuffalo.io/docs/db/getting-started"
description: "A Tasty Treat For All Your Database Needs"
skip_upload: "auto"
<% } %>

0 comments on commit 2f9268d

Please sign in to comment.