Skip to content

Commit 68eeac3

Browse files
committed
chore: Introduce go releaser
1 parent 1a0eb6c commit 68eeac3

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.vscode
2+
dist

.goreleaser.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
before:
2+
hooks:
3+
- go mod download
4+
builds:
5+
- id: nsd
6+
dir: nsd
7+
binary: nsd
8+
env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- windows
13+
- darwin
14+
ignore:
15+
- goos: darwin
16+
goarch: 386
17+
- goos: linux
18+
goarch: 386
19+
archives:
20+
- replacements:
21+
darwin: Darwin
22+
linux: Linux
23+
windows: Windows
24+
386: i386
25+
amd64: x86_64
26+
checksum:
27+
name_template: 'checksums.txt'
28+
snapshot:
29+
name_template: "{{ .Tag }}-next"
30+
changelog:
31+
sort: asc
32+
filters:
33+
exclude:
34+
- '^docs:'
35+
- '^chore:'
36+
- '^test:'

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
language: go
22
go: "1.15"
3+
4+
script:
5+
- go test ./...
6+
- curl -sfL https://git.io/goreleaser | sh -s -- check
7+
8+
deploy:
9+
- provider: script
10+
skip_cleanup: true
11+
script: curl -sL https://git.io/goreleaser | bash
12+
on:
13+
tags: true
14+
condition: $TRAVIS_OS_NAME = linux

0 commit comments

Comments
 (0)