By adding tags and pushing these to github, one can create release versions (aka builts) with Travis-CI that are part of the repository.
I do this for example for my RR Guideline repository.
To make a release do the following:
- Make changes and commit these:
git commit -a
- Add a tag (to the previous commit):
git tag -a [tagname] -m '[annotation]'
The first option -a
creates a tag with the name [tagname]
, while the second option adds an annotation.
- To review the tags simply use:
git tag
and to show the tagged version use
git show [tagname]
- Push the tag to the remote repository:
git push origin [tagname]
git push
or
git push origin --tags