-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add goreleaser, update action and go versions
Add goreleaser to automate the generation of release notes and bump the versions of github actions golang go the latest versions.
- Loading branch information
Showing
4 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# When adding options check the documentation at https://goreleaser.com | ||
builds: | ||
- skip: true | ||
release: | ||
header: | | ||
<a name='{{.Tag}}'></a> | ||
### {{.Tag}} Release Notes ({{.Date}}) | ||
footer: | | ||
[Full Changelog](https://{{ .ModulePath }}/compare/{{ .PreviousTag }}...{{ .Tag }}) | ||
changelog: | ||
use: github | ||
sort: asc | ||
filters: | ||
exclude: | ||
- Merge pull request | ||
- Merge remote-tracking branch | ||
- Merge branch | ||
|
||
# Group commits messages by given regex and title. | ||
# Order value defines the order of the groups. | ||
# Proving no regex means all commits will be grouped under the default group. | ||
# 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>". | ||
# | ||
# Default is no groups. | ||
groups: | ||
- title: Features | ||
regexp: '^.*?(feat|feature)(\([[:word:]]+\))??!?:.+$' | ||
order: 0 | ||
- title: 'Bug fixes' | ||
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' | ||
order: 1 | ||
- title: 'Chores' | ||
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$' | ||
order: 2 | ||
- title: 'Quality' | ||
regexp: '^.*?(qa|test|tests)(\([[:word:]]+\))??!?:.+$' | ||
order: 3 | ||
- title: 'Documentation' | ||
regexp: '^.*?(doc|docs)(\([[:word:]]+\))??!?:.+$' | ||
order: 4 | ||
- title: 'Continuous Integration' | ||
regexp: '^.*?ci(\([[:word:]]+\))??!?:.+$' | ||
order: 5 | ||
- title: Other | ||
order: 999 |