feat(goreleaser): fixed changelog messages
This commit is contained in:
parent
7da4e23b57
commit
72f9806e32
2 changed files with 39 additions and 59 deletions
24
.github/workflows/release.yaml
vendored
Normal file
24
.github/workflows/release.yaml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
tag:
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
# 'latest', 'nightly', or a semver
|
||||
version: '~> v0.0.2'
|
||||
args: release --clean
|
||||
|
|
@ -1,18 +1,8 @@
|
|||
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||
# Make sure to check the documentation at https://goreleaser.com
|
||||
|
||||
# The lines below are called `modelines`. See `:help modeline`
|
||||
# Feel free to remove those if you don't want/need to use them.
|
||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||
|
||||
version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
- go mod tidy
|
||||
# you may remove this if you don't need go generate
|
||||
- go generate ./...
|
||||
|
||||
builds:
|
||||
|
|
@ -42,56 +32,22 @@ archives:
|
|||
formats: [zip]
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
abbrev: 10
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
|
||||
release:
|
||||
footer: >-
|
||||
|
||||
---
|
||||
|
||||
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
||||
|
||||
gitea:
|
||||
owner: DevFW-CICD
|
||||
name: edge-connect-client
|
||||
|
||||
# IDs of the artifacts to use.
|
||||
#ids:
|
||||
# - foo
|
||||
# - bar
|
||||
|
||||
# You can change the name of the release.
|
||||
#
|
||||
# Default: '{{.Tag}}' ('{{.PrefixedTag}}' on Pro).
|
||||
# Templates: allowed.
|
||||
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
|
||||
|
||||
# You can disable this pipe in order to not upload any artifacts.
|
||||
disable: false
|
||||
|
||||
# What to do with the release notes in case there the release already exists.
|
||||
#
|
||||
# Valid options are:
|
||||
# - `keep-existing`: keep the existing notes
|
||||
# - `append`: append the current release notes to the existing notes
|
||||
# - `prepend`: prepend the current release notes to the existing notes
|
||||
# - `replace`: replace existing notes
|
||||
#
|
||||
# Default: 'keep-existing'.
|
||||
mode: append
|
||||
|
||||
# You can add extra pre-existing files to the release.
|
||||
# The filename on the release will be the last part of the path (base).
|
||||
# If another file with the same name exists, the last one found will be used.
|
||||
#
|
||||
# Templates: allowed.
|
||||
#extra_files:
|
||||
#- glob: ./path/to/file.txt
|
||||
#- glob: ./glob/**/to/**/file/**/*
|
||||
#- glob: ./glob/foo/to/bar/file/foobar/override_from_previous
|
||||
#- glob: ./single_file.txt
|
||||
# name_template: file.txt # note that this only works if glob matches 1 file only
|
||||
format: "{{.SHA}}: {{.Message}}"
|
||||
groups:
|
||||
- title: Features
|
||||
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
||||
order: 0
|
||||
- title: "Bug fixes"
|
||||
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
||||
order: 1
|
||||
- title: "Chores"
|
||||
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
|
||||
order: 2
|
||||
- title: Others
|
||||
order: 999
|
||||
sort: asc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue