From 29b382ebf349bd2db3a7502e39fa20e1a21577ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Thu, 27 Sep 2018 18:52:38 +0200 Subject: [PATCH] Add basic goreleaser --- .goreleaser.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..2125fdf --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,38 @@ +project_name: ooniprobe +release: + github: + owner: ooni + name: probe-cli +brew: + install: bin.install "ooniprobe" +builds: +- goos: + - darwin + goarch: + - amd64 + main: cmd/ooni/main.go + binary: ooni +- goos: + - windows + goarch: + - amd64 + env: + - CC=x86_64-w64-mingw32-gcc + - CGO_ENABLED=1 + main: cmd/ooni/main.go + binary: ooni +archive: + format: tar.gz + name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ + .Arm }}{{ end }}' + files: + - licence* + - LICENCE* + - license* + - LICENSE* + - readme* + - README* + - changelog* + - CHANGELOG* +snapshot: + name_template: SNAPSHOT-{{ .Commit }}