diff --git a/.gitignore b/.gitignore index 62c8935..8a2ec75 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.idea/ \ No newline at end of file +.idea/ +# Needed for goreleaser in CI +coverage.txt diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..8aa559a --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,31 @@ +before: + hooks: + - go mod download +builds: +- main: ./cmd/csminify/main.go + env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - 386 + - amd64 +archive: + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/.travis.yml b/.travis.yml index 36be2ce..4ac177a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,14 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) +deploy: +- provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_GO_VERSION =~ ^1\.11 + notifications: webhooks: urls: