Skip to content

Commit

Permalink
ci: update GoReleaser configuration and changelog settings
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
appleboy committed Jan 19, 2025
1 parent 16e1394 commit 4a682bd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
go-version: "^1"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
Expand Down
31 changes: 14 additions & 17 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
project_name: queue

builds:
- # If true, skip the build.
# Useful for library projects.
Expand All @@ -9,8 +7,7 @@ builds:
changelog:
# Set it to true if you wish to skip the changelog generation.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
# Default is false
skip: true
disable: false

# Changelog generation implementation to use.
#
Expand All @@ -21,7 +18,7 @@ changelog:
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
#
# Defaults to `git`.
use: git
use: github

# Sorts the changelog by the commit's messages.
# Could either be asc, desc or empty
Expand All @@ -36,22 +33,22 @@ changelog:
# Default is no groups.
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
regexp: "^.*feat[(\\w-)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
regexp: "^.*fix[(\\w-)]*:+.*$"
order: 1
- title: "Enhancements"
regexp: "^.*chore[(\\w)]*:+.*$"
regexp: "^.*chore[(\\w-)]*:+.*$"
order: 2
- title: "Refactor"
regexp: "^.*refactor[(\\w-)]*:+.*$"
order: 3
- title: "Build process updates"
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
order: 4
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 4
- title: Others
order: 999

filters:
# Commit messages matching the regexp listed here will be removed from
# the changelog
# Default is empty
exclude:
- "^docs"
- "CICD"
- typo

0 comments on commit 4a682bd

Please sign in to comment.