Skip to content

Commit 722aa5b

Browse files
committed
ci: refine GitHub Actions and Release Workflow
- Update the GolangCI-Lint action to version 5 in the GitHub workflow for Go - Change the Goreleaser argument from `--rm-dist` to `--clean` in the GitHub workflow - Remove the `project_name` setting from the `.goreleaser.yaml` file - Simplify the `skip` setting for builds in `.goreleaser.yaml` - Change the changelog configuration to use the GitHub API instead of git logs in `.goreleaser.yaml` - Update the titles for changelog groups from single to double quotes in `.goreleaser.yaml` - Add new changelog groups for refactoring, build process updates, and documentation updates in `.goreleaser.yaml` - Remove the filters section that excluded commits from the changelog based on certain patterns in `.goreleaser.yaml` Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent bc1c3dc commit 722aa5b

File tree

3 files changed

+15
-46
lines changed

3 files changed

+15
-46
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121
- name: Setup golangci-lint
22-
uses: golangci/golangci-lint-action@v4
22+
uses: golangci/golangci-lint-action@v5
2323
with:
2424
args: --verbose
2525
test:

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
# either 'goreleaser' (default) or 'goreleaser-pro'
2727
distribution: goreleaser
2828
version: latest
29-
args: release --rm-dist
29+
args: release --clean
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,26 @@
1-
project_name: queue
2-
31
builds:
4-
-
5-
# If true, skip the build.
6-
# Useful for library projects.
7-
# Default is false
8-
skip: true
2+
- skip: true
93

104
changelog:
11-
# Set it to true if you wish to skip the changelog generation.
12-
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
14-
15-
# Changelog generation implementation to use.
16-
#
17-
# Valid options are:
18-
# - `git`: uses `git log`;
19-
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
20-
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
21-
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
22-
#
23-
# Defaults to `git`.
24-
use: git
25-
26-
# Sorts the changelog by the commit's messages.
27-
# Could either be asc, desc or empty
28-
# Default is empty
29-
sort: asc
30-
31-
# Group commits messages by given regex and title.
32-
# Order value defines the order of the groups.
33-
# Proving no regex means all commits will be grouped under the default group.
34-
# Groups are disabled when using github-native, as it already groups things by itself.
35-
#
36-
# Default is no groups.
5+
use: github
376
groups:
387
- title: Features
398
regexp: "^.*feat[(\\w)]*:+.*$"
409
order: 0
41-
- title: 'Bug fixes'
10+
- title: "Bug fixes"
4211
regexp: "^.*fix[(\\w)]*:+.*$"
4312
order: 1
44-
- title: 'Enhancements'
13+
- title: "Enhancements"
4514
regexp: "^.*chore[(\\w)]*:+.*$"
4615
order: 2
16+
- title: "Refactor"
17+
regexp: "^.*refactor[(\\w)]*:+.*$"
18+
order: 3
19+
- title: "Build process updates"
20+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
21+
order: 4
22+
- title: "Documentation updates"
23+
regexp: ^.*?docs?(\(.+\))??!?:.+$
24+
order: 4
4725
- title: Others
4826
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)