Skip to content

Commit acfff07

Browse files
committed
chore(release): go-only pipeline with version injection
Inject the release version via ldflags, exclude chore commits from the changelog, and build from the module root.
1 parent 58bbf77 commit acfff07

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.goreleaser.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ release:
1010

1111
builds:
1212
- id: lazycommit
13-
main: ./main.go
13+
main: .
1414
binary: lazycommit
1515
env:
1616
- CGO_ENABLED=0
1717
goos: [linux, darwin, windows]
1818
goarch: [amd64, arm64]
1919
ldflags:
20-
- -s -w
20+
- -s -w -X main.version={{.Version}}
2121

2222
archives:
2323
- id: archive
@@ -34,5 +34,6 @@ changelog:
3434
use: git
3535
filters:
3636
exclude:
37-
- '^docs:'
38-
- '^test:'
37+
- "^docs:"
38+
- "^test:"
39+
- "^chore:"

0 commit comments

Comments
 (0)