Skip to content

Commit

Permalink
chore: Introduce go releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Nov 17, 2020
1 parent 1a0eb6c commit 68eeac3
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.vscode
dist
36 changes: 36 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,36 @@
before:
hooks:
- go mod download
builds:
- id: nsd
dir: nsd
binary: nsd
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
archives:
- 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:'
- '^chore:'
- '^test:'
12 changes: 12 additions & 0 deletions .travis.yml
@@ -1,2 +1,14 @@
language: go
go: "1.15"

script:
- go test ./...
- curl -sfL https://git.io/goreleaser | sh -s -- check

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

0 comments on commit 68eeac3

Please sign in to comment.