Skip to content

Commit

Permalink
👷 ci(goreleaser): improve
Browse files Browse the repository at this point in the history
- add trimpath flag
- modify darwin replacement
- add changelog & release
  • Loading branch information
iyear committed Oct 8, 2022
1 parent 5b50c6e commit 6b0fbf3
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ env:
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags: -s -w
goos:
- linux
Expand Down Expand Up @@ -33,7 +35,7 @@ checksum:
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
darwin: macOS
linux: Linux
windows: Windows
386: 32bit
Expand All @@ -47,11 +49,23 @@ archives:
- config/account.yaml.example
- LICENSE
- static
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
groups:
- title: New Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Documentation updates'
regexp: "^.*docs[(\\w)]*:+.*$"
order: 2
- title: 'Refactoring'
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 3
- title: Others
order: 4
release:
draft: true

0 comments on commit 6b0fbf3

Please sign in to comment.