diff --git a/.gitignore b/.gitignore index 81f4082..54015d7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ .tmp/ /astro/graph.png /bin -/vendor +/dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..809aefc --- /dev/null +++ b/.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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 564a4d6..f9be3bc 100644 --- a/CHANGELOG.md +++ b/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)