Skip to content

Commit

Permalink
build: update goreleaser.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cqroot committed Sep 25, 2024
1 parent 8cf348f commit 6adc398
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,45 @@
version: 2
builds:
# You can have multiple builds defined as a yaml list
- # If true, skip the build.
# Useful for library projects.
# Default is false
#
# Templates: allowed (since v2.3).
skip: true

changelog:
# Set this to true if you don't want any changelog at all.
#
# Warning: this will also ignore any changelog files passed via `--release-notes`,
# and will render an empty changelog.
#
# This may result in an empty release notes on GitHub/GitLab/Gitea.
#
# Templateable since v1.16.0.
# Must evaluate to either true or false.
#
# Defaults to false.
skip: false

# Changelog generation implementation to use.
#
# Valid options are:
# - `git`: uses `git log`;
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
# - `github`: uses the compare GitHub API, appending the author username to the changelog.
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog (requires a personal access token).
# - `gitea`: uses the compare Gitea API, appending the author username to the changelog.
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
#
# Defaults to `git`.
# Default: 'git'.
use: git

# Sorts the changelog by the commit's messages.
# Could either be asc, desc or empty
# Default is empty
# Empty means 'no sorting', it'll use the output of `git log` as is.
sort: asc

# Group commits messages by given regex and title.
# Order value defines the order of the groups.
# Providing no regex means all commits will be grouped under the default group.
#
# Matches are performed against the first line of the commit message only,
# prefixed with the commit SHA1, usually in the form of
# `<abbrev-commit>[:] <title-commit>`.
# Groups are disabled when using github-native, as it already groups things by itself.
# Matches are performed against strings of the form: "<abbrev-commit>[:] <title-commit>".
# Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
#
# Default is no groups.
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 comments on commit 6adc398

Please sign in to comment.