Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary releases #14

Merged
merged 10 commits into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
.tmp/
/astro/graph.png
/bin
/vendor
/dist
32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
project_name: astro
archive:
format_overrides:
- goos: darwin
format: zip
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
before:
hooks:
- go mod download
builds:
- binary: astro
main: ./astro/cli/astro/main.go
env:
- GO111MODULE=on
ignore:
- goos: darwin
goarch: 386
ldflags:
- -s -w -X github.com/uber/astro/astro/cli/astro/cmd.version={{.Version}} -X github.com/uber/astro/astro/cli/astro/cmd.commit={{.ShortCommit}} -X github.com/uber/astro/astro/cli/astro/cmd.date={{.Date}}
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# astro changelog

## 0.5.0 (UNRELEASED, 2018)
## 0.5.0 (UNRELEASED, 2019)

* Add binaries via goreleaser (#14)
* Adopt options pattern for `astro.NewProject` constructor (#26)
* Refactor and improve integration tests to invoke them directly using cli
rather than `os.exec` (#26)
Expand Down