Skip to content

Commit

Permalink
goreleaser: add additional release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed May 15, 2020
1 parent 8f9dbf7 commit c91fc78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- run: go get
- run: make test-circle
- run: make build
- run: make snapshot
- run: goreleaser check
# persist
- save-go-mod-cache
- save-workspace
Expand Down
18 changes: 15 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,28 @@ changelog:
# artifacts: checksum

archives:
# Binary named 'Linux' for backwards compatibility with old release format
- id: old-format-liinux
# Old release format for backwards compatibility with existing scripts: Binary named 'Linux'
- id: old-format-linux
builds: ["linux"]
format: binary
name_template: "Linux"
# Binary named 'OSX' for backwards compatibility with old release format
# Old release format for backwards compatibility with existing scripts: Binary named 'OSX'
- id: old-format-osx
builds: ["macos"]
format: binary
name_template: "OSX"
# New release format, binaries for all platforms in the form: `autotag_linux_amd64`
- id: new-format-binary-only-all-platforms
format: binary
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# archive releases containing: binary, readme, and license. tarballs (macos, linux), zip (windows)
- id: archives
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
386: i386
format_overrides:
- goos: windows
format: zip

# homebrew
# brews:
Expand Down

0 comments on commit c91fc78

Please sign in to comment.