diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..f3ff846a --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,31 @@ +project_name: vuls +release: + github: + owner: future-architect + name: vuls +builds: +- goos: + - linux + - freebsd + goarch: + - "386" + - amd64 + - arm + - arm64 + goarm: + - "6" + - "7" + main: . + ldflags: -s -w -X main.version={{.Version}} -X main.revision={{.Commit}} + binary: vuls +archive: + format: tar.gz + name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ + .Arm }}{{ end }}' + files: + - LICENSE + - NOTICE + - README* + - CHANGELOG.md +snapshot: + name_template: SNAPSHOT-{{ .Commit }} diff --git a/.travis.yml b/.travis.yml index 2875f639..31f21869 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ language: go go: - 1.8 +after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash