Skip to content

Commit 6620b6e

Browse files
committed
Add release automation assets
1 parent fb9439c commit 6620b6e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ go.work.sum
2323

2424
# env file
2525
.env
26+
27+
# Added by goreleaser init:
28+
dist/

.goreleaser.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://goreleaser.com/customization/
2+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
3+
version: 2
4+
5+
before:
6+
hooks:
7+
- go mod tidy
8+
9+
builds:
10+
- main: ./cmd/namigo
11+
id: namigo
12+
binary: namigo
13+
env:
14+
- CGO_ENABLED=0
15+
goos:
16+
- linux
17+
- windows
18+
- darwin
19+
flags:
20+
- -trimpath
21+
22+
release:
23+
github:
24+
owner: huangsam
25+
name: namigo
26+
name_template: "v{{ .Version }}"

0 commit comments

Comments
 (0)