Skip to content

Commit 4a682bd

Browse files
committed
ci: update GoReleaser configuration and changelog settings
- Replace `go-version-file` and `check-latest` with `go-version` in GoReleaser workflow - Update GoReleaser action from v5 to v6 - Remove `project_name` from GoReleaser configuration - Change changelog `skip` to `disable` and set it to false - Change changelog `use` from `git` to `github` - Update regular expressions for changelog sections to include hyphens in parentheses - Add new changelog sections for `Refactor`, `Build process updates`, and `Documentation updates` - Remove `filters` section from changelog configuration Signed-off-by: appleboy <[email protected]>
1 parent 16e1394 commit 4a682bd

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

.github/workflows/goreleaser.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version-file: "go.mod"
23-
check-latest: true
22+
go-version: "^1"
2423
- name: Run GoReleaser
25-
uses: goreleaser/goreleaser-action@v5
24+
uses: goreleaser/goreleaser-action@v6
2625
with:
2726
# either 'goreleaser' (default) or 'goreleaser-pro'
2827
distribution: goreleaser

.goreleaser.yaml

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
project_name: queue
2-
31
builds:
42
- # If true, skip the build.
53
# Useful for library projects.
@@ -9,8 +7,7 @@ builds:
97
changelog:
108
# Set it to true if you wish to skip the changelog generation.
119
# This may result in an empty release notes on GitHub/GitLab/Gitea.
12-
# Default is false
13-
skip: true
10+
disable: false
1411

1512
# Changelog generation implementation to use.
1613
#
@@ -21,7 +18,7 @@ changelog:
2118
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
2219
#
2320
# Defaults to `git`.
24-
use: git
21+
use: github
2522

2623
# Sorts the changelog by the commit's messages.
2724
# Could either be asc, desc or empty
@@ -36,22 +33,22 @@ changelog:
3633
# Default is no groups.
3734
groups:
3835
- title: Features
39-
regexp: "^.*feat[(\\w)]*:+.*$"
36+
regexp: "^.*feat[(\\w-)]*:+.*$"
4037
order: 0
4138
- title: "Bug fixes"
42-
regexp: "^.*fix[(\\w)]*:+.*$"
39+
regexp: "^.*fix[(\\w-)]*:+.*$"
4340
order: 1
4441
- title: "Enhancements"
45-
regexp: "^.*chore[(\\w)]*:+.*$"
42+
regexp: "^.*chore[(\\w-)]*:+.*$"
4643
order: 2
44+
- title: "Refactor"
45+
regexp: "^.*refactor[(\\w-)]*:+.*$"
46+
order: 3
47+
- title: "Build process updates"
48+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
49+
order: 4
50+
- title: "Documentation updates"
51+
regexp: ^.*?docs?(\(.+\))??!?:.+$
52+
order: 4
4753
- title: Others
4854
order: 999
49-
50-
filters:
51-
# Commit messages matching the regexp listed here will be removed from
52-
# the changelog
53-
# Default is empty
54-
exclude:
55-
- "^docs"
56-
- "CICD"
57-
- typo

0 commit comments

Comments
 (0)