Skip to content

Commit feebdf6

Browse files
committed
ci: update GoReleaser and GitHub Actions configurations
- Replace `go-version-file` and `check-latest` with `go-version` in GitHub Actions workflow - Remove `project_name` from GoReleaser config - Change `skip` to `disable` in GoReleaser changelog config - Change `use` from `git` to `github` in GoReleaser changelog config - Update regular expressions for changelog titles in GoReleaser config - Add new changelog categories: `Refactor`, `Build process updates`, and `Documentation updates` - Remove `filters` section from GoReleaser config Signed-off-by: appleboy <[email protected]>
1 parent da26ae2 commit feebdf6

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.github/workflows/goreleaser.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ 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
2524
uses: goreleaser/goreleaser-action@v6
2625
with:

.goreleaser.yaml

+17-20
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
project_name: queue
2-
31
builds:
4-
-
5-
# If true, skip the build.
2+
- # If true, skip the build.
63
# Useful for library projects.
74
# Default is false
85
skip: true
96

107
changelog:
118
# Set it to true if you wish to skip the changelog generation.
129
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
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
41-
- title: 'Bug fixes'
42-
regexp: "^.*fix[(\\w)]*:+.*$"
38+
- title: "Bug fixes"
39+
regexp: "^.*fix[(\\w-)]*:+.*$"
4340
order: 1
44-
- title: 'Enhancements'
45-
regexp: "^.*chore[(\\w)]*:+.*$"
41+
- title: "Enhancements"
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)