Skip to content

Commit b1a4def

Browse files
committed
chore(release): add goreleaser config
1 parent 3bfe1d0 commit b1a4def

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

.github/workflows/goreleaser.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
-
21+
name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: 1.17
25+
-
26+
name: Run GoReleaser
27+
uses: goreleaser/goreleaser-action@v2
28+
with:
29+
# either 'goreleaser' (default) or 'goreleaser-pro'
30+
distribution: goreleaser
31+
version: latest
32+
args: release --rm-dist
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
project_name: queue
2+
3+
changelog:
4+
# Set it to true if you wish to skip the changelog generation.
5+
# This may result in an empty release notes on GitHub/GitLab/Gitea.
6+
skip: false
7+
8+
# Changelog generation implementation to use.
9+
#
10+
# Valid options are:
11+
# - `git`: uses `git log`;
12+
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
13+
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
14+
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
15+
#
16+
# Defaults to `git`.
17+
use: git
18+
19+
# Sorts the changelog by the commit's messages.
20+
# Could either be asc, desc or empty
21+
# Default is empty
22+
sort: asc
23+
24+
# Group commits messages by given regex and title.
25+
# Order value defines the order of the groups.
26+
# Proving no regex means all commits will be grouped under the default group.
27+
# Groups are disabled when using github-native, as it already groups things by itself.
28+
#
29+
# Default is no groups.
30+
groups:
31+
- title: Features
32+
regexp: "^.*feat[(\\w)]*:+.*$"
33+
order: 0
34+
- title: 'Bug fixes'
35+
regexp: "^.*fix[(\\w)]*:+.*$"
36+
order: 1
37+
- title: Others
38+
order: 999
39+
40+
filters:
41+
# Commit messages matching the regexp listed here will be removed from
42+
# the changelog
43+
# Default is empty
44+
exclude:
45+
- '^docs'
46+
- typo

0 commit comments

Comments
 (0)