mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
chore: add make release target (#130)
Signed-off-by: Derek Smith <derek@clokwork.net>
This commit is contained in:
parent
2f5b47b0f7
commit
b02996e027
2 changed files with 26 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -28,3 +28,10 @@ changelog: build
|
|||
.PHONY: lint
|
||||
lint:
|
||||
@golangci-lint run
|
||||
|
||||
.PHONY: release
|
||||
release: changelog
|
||||
@git add CHANGELOG.md
|
||||
@git commit -m "chore: update changelog for $(VERSION)"
|
||||
git tag $(VERSION)
|
||||
git push origin master $(VERSION)
|
||||
|
|
|
|||
22
README.md
22
README.md
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
[](https://godoc.org/github.com/git-chglog/git-chglog)
|
||||
[](https://github.com/git-chglog/git-chglog/actions)
|
||||
[](https://ci.appveyor.com/project/tsuyoshiwada/git-chglog/branch/master)
|
||||
[](https://coveralls.io/github/git-chglog/git-chglog?branch=master)
|
||||
[](https://github.com/git-chglog/git-chglog/blob/master/LICENSE)
|
||||
|
||||
|
|
@ -659,7 +658,7 @@ Within a `Commit`, the following Jira data can be used in template:
|
|||
|
||||
We alway welcome your contributions :clap:
|
||||
|
||||
### Development
|
||||
## Development
|
||||
|
||||
1. Use Golang version `>= 1.16`
|
||||
1. Fork (https://github.com/git-chglog/git-chglog) :tada:
|
||||
|
|
@ -673,7 +672,24 @@ We alway welcome your contributions :clap:
|
|||
|
||||
Bugs, feature requests and comments are more than welcome in the [issues].
|
||||
|
||||
### Feedback
|
||||
## Release Process
|
||||
|
||||
There is a `release` target within the Makefile that wraps up the steps to
|
||||
release a new version.
|
||||
|
||||
> NOTE: Pass the `VERSION` variable when running the command to properly set
|
||||
> the tag version for the release.
|
||||
|
||||
```bash
|
||||
$ VERSION=vX.Y.Z make release
|
||||
# EXAMPLE:
|
||||
$ VERSION=v0.11.3 make release
|
||||
```
|
||||
|
||||
Once the `tag` has been pushed, the `goreleaser` github action will take care
|
||||
of the rest.
|
||||
|
||||
## Feedback
|
||||
|
||||
I would like to make `git-chglog` a better tool.
|
||||
The goal is to be able to use in various projects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue