fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

ci: :green_heart: tests release workflow #164

Closed lucasvmx closed 2 years ago

lucasvmx commented 2 years ago

Signed-off-by: Lucas Vieira lucas.engen.cc@gmail.com

shoothzj commented 2 years ago

what is this for? could you please show an example or screenshot? thanks.

lucasvmx commented 2 years ago

what is this for? could you please show an example or screenshot? thanks.

Motivation

We can use this to generate releases more easily

Whenever @chowyu08 makes a merge request he can create release tags and push

Example

This is an example of a release generated by this pipeline

image

How to Use

git checkout master
git tag -a "vx.x.x" -m "release x.x.x"
git push --tags

Commits

If we follow AngularJS commits format then releases will appear with formatted messages for example:

commits starting with fix: will be parsed as "Bug Fixes" commits starting with ci: will be parsed as "Continuous Integration"

Another Example

Run it with:

git commit -m "fix: THIS IS A FAKE BUGFIX" -s -S
git push origin ci/test-release
git tag -a "v0.4.0" -m "v0.4.0"
git push --tags

image

lucasvmx commented 2 years ago

I will create another pull request to send this change