Skip to content

Commit dccffbd

Browse files
committed
chore: fix go releaser ldflags
Signed-off-by: Me0wo <152751263+Sn0wo2@users.noreply.github.com>
1 parent 6ce03e9 commit dccffbd

1 file changed

Lines changed: 18 additions & 20 deletions

File tree

.goreleaser.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ builds:
44
- id: QuickNote
55
main: ./main.go
66
binary: QuickNote
7-
env:
8-
- CGO_ENABLED=0
97
goos:
108
- windows
119
- linux
@@ -25,9 +23,9 @@ builds:
2523
- -s -w -buildid=
2624
- -extldflags=-static
2725
- -linkmode internal
28-
- -X main.version={{.Version}}
29-
- -X main.commit={{.Commit}}
30-
- -X main.date={{.Date}}
26+
- -X github.com/Sn0wo2/QuickNote/pkg/version.version={{.Version}}
27+
- -X github.com/Sn0wo2/QuickNote/pkg/version.commit={{.Commit}}
28+
- -X github.com/Sn0wo2/QuickNote/pkg/version.date={{.Date}}
3129
archives:
3230
- id: default
3331
format_overrides:
@@ -79,29 +77,29 @@ changelog:
7977
use: github
8078
sort: asc
8179
groups:
82-
- title: 🚀 New Features
83-
regexp: "^.*feat(\\w*):+.*$"
80+
- title: "🚀 Features"
81+
regexp: "^.*feat(?:\\([^)]+\\))?:+.*$"
8482
order: 0
8583
- title: "🐛 Bug Fixes"
86-
regexp: "^.*fix(\\w*):+.*$"
84+
regexp: "^.*fix(?:\\([^)]+\\))?:+.*$"
8785
order: 1
88-
- title: "⚡️ Performance"
89-
regexp: "^.*perf(\\w*):+.*$"
86+
- title: "⚡️ Performance Improvements"
87+
regexp: "^.*perf(?:\\([^)]+\\))?:+.*$"
9088
order: 2
9189
- title: "📝 Documentation"
92-
regexp: "^.*docs(\\w*):+.*$"
90+
regexp: "^.*docs(?:\\([^)]+\\))?:+.*$"
9391
order: 3
94-
- title: "🔧 Enhancements"
95-
regexp: "^.*chore(\\w*):+.*$"
92+
- title: "🔧 Maintenance & Chores"
93+
regexp: "^.*chore(?:\\([^)]+\\))?:+.*$"
9694
order: 4
97-
- title: "♻️ Refactor"
98-
regexp: "^.*refactor(\\w*):+.*$"
95+
- title: "♻️ Code Refactoring"
96+
regexp: "^.*refactor(?:\\([^)]+\\))?:+.*$"
9997
order: 5
10098
- title: "🧪 Tests"
101-
regexp: "^.*test(\\w*):+.*$"
99+
regexp: "^.*test(?:\\([^)]+\\))?:+.*$"
102100
order: 6
103-
- title: "📦 Dependencies"
104-
regexp: "^.*deps(\\w*):+.*$"
101+
- title: "📦 Dependency Updates"
102+
regexp: "^.*deps(?:\\([^)]+\\))?:+.*$"
105103
order: 7
106-
- title: 📍 Others
107-
order: 999
104+
- title: "📍 Others"
105+
order: 999

0 commit comments

Comments
 (0)