diff --git a/.gitignore b/.gitignore index ccd0805..bd8fff4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /vendor /bin + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..ca86b7d --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,26 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + +archives: + - format: tar.gz + name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ + .Arm }}{{ end }}' + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + files: + - LICENSE* + - README* +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index b2558bc..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,27 +0,0 @@ -project_name: deps-git -release: - github: - owner: dropseed - name: deps-git -builds: -- goos: - - linux - - darwin - goarch: - - amd64 - - "386" - goarm: - - "6" - main: ./ - binary: deps-git - env: - - CGO_ENABLED=0 -archive: - format: tar.gz - name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ - .Arm }}{{ end }}' - files: - - LICENSE* - - README* -snapshot: - name_template: SNAPSHOT-{{ .Commit }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69fb73c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go -install: - - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - - curl https://deps.app/install.sh | bash -script: - - ./bin/deps dev test -l -after_success: - - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash