Skip to content

Commit

Permalink
Add binary releases (#14)
Browse files Browse the repository at this point in the history
This adds goreleaser so that new binaries will automatically be uploaded to Github when a tag is pushed. Goreleaser will be triggered by github action (#50).
  • Loading branch information
dansimau authored and btromanova committed Oct 2, 2019
1 parent f15067e commit b46923a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -7,4 +7,4 @@
.tmp/
/astro/graph.png
/bin
/vendor
/dist
32 changes: 32 additions & 0 deletions .goreleaser.yml
@@ -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
@@ -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

0 comments on commit b46923a

Please sign in to comment.