This document is a cheat sheet to be used as reference when releasing a new version of this project
All examples may contain placeholders you need to replace:
$(VERSION): The version string of the current release$(FILENAME): The name of the implementation, currentlyMakefile.semver$(STAMP): Release stamp in the formatYYYY-MM-DD, needed only for the change log
If you are working on a development branch, then first merge it into master.
The rest of the document assume you are working on the master branch.
Remove any active development cycle from the VERSION.data file by running:
make version.releaseThe release version will be printed to the terminal. As mentioned above, this is the value you should use for the $(VERSION) placeholder.
Head to the last section named ## Downloading specific versions and append a new snippet using this template:
### Release Version [$(VERSION)](https://github.com/malcos/makefile-semver/tree/$(VERSION))
[$(FILENAME)](https://github.com/malcos/makefile-semver/blob/$(VERSION)/$(FILENAME)):
```Makefile
_:=$(or $(wildcard $(FILENAME)), $(shell curl -sO https://raw.githubusercontent.com/malcos/makefile-semver/$(VERSION)/$(FILENAME)))
include $(FILENAME)
```Update the version in the title of the document
# makefile-semver ($(VERSION))And replace the auto include example for the new release in the ## Integration section. Just copy the snippet you created in the previous step. Or create it again using the very same template:
### Release Version [$(VERSION)](https://github.com/malcos/makefile-semver/tree/$(VERSION))
[$(FILENAME)](https://github.com/malcos/makefile-semver/blob/$(VERSION)/$(FILENAME)):
```Makefile
_:=$(or $(wildcard $(FILENAME)), $(shell curl -sO https://raw.githubusercontent.com/malcos/makefile-semver/$(VERSION)/$(FILENAME)))
include $(FILENAME)
```Add new section link at the very bottom
[$(VERSION)]: https://github.com/malcos/makefile-semver/tree/$(VERSION)Rename the Unreleased to the current release version
## [Unreleased]Should become
## [$(VERSION)] - $(STAMP)Append a new Unreleased section at the top again, set (empty) as content.
## [Unreleased]
(empty)Create a commit with the version
git add .
git commit -m "$(VERSION) release"Tag the current commit
git tag $(VERSION) masterAnd push the changes and immediately push the new tag
git push
git push origin $(VERSION)- auto include examples in
README.md - auto include examples in
support/docs/auto-include.md - section link in
CHANGELOG.md