Skip to content

Commit e09dbc7

Browse files
committed
chore(release): add goreleaser config
1 parent c293246 commit e09dbc7

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-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

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
project_name: queue
2+
3+
builds:
4+
-
5+
# If true, skip the build.
6+
# Useful for library projects.
7+
# Default is false
8+
skip: true
9+
10+
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.
37+
groups:
38+
- title: Features
39+
regexp: "^.*feat[(\\w)]*:+.*$"
40+
order: 0
41+
- title: 'Bug fixes'
42+
regexp: "^.*fix[(\\w)]*:+.*$"
43+
order: 1
44+
- title: 'Enhancements'
45+
regexp: "^.*chore[(\\w)]*:+.*$"
46+
order: 2
47+
- title: Others
48+
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)