This file describes how to make release builds of exampleLang.
To make a release, perform the following steps:
- Make a release commit and push it to a new branch
- Make a pull request to
master
and get it approved and merged - Make a release tag for the merged pull request
The release commit shall contain the following changes in pom.xml
:
project.version
is set to the release version, e.g.1.0.0
The release commit shall contain the following changes in src/main/mal/exampleLang.mal
:
#version
is set to the release version, e.g.1.0.0
The name of the new branch doesn't matter, since it will be deleted after the release commit has been merged to master
, but the convention for branch names is <user-name>/<branch-name>
, e.g. max/release
.
The commit message shall be Release <version>
, e.g. Release 1.0.0
.
$ git checkout -b max/release
$ sed -i 's|^ <version>.*</version>$| <version>1.0.0</version>|' pom.xml
$ sed -i 's|^#version: ".*"$|#version: "1.0.0"|' src/main/mal/exampleLang.mal
$ git add pom.xml src/main/mal/exampleLang.mal
$ git commit -m "Release 1.0.0"
$ git push origin max/release
Go to the repository on GitHub, click Pull requests
, and then New pull request
. Make sure that base
is set to master
, and set compare
to your branch. Click Create pull request
, add appropriate Reviewers
, and add yourself as Assignees
.
Once your pull request has been merged, you need to fetch the new merged commit in master
to create the release tag:
$ git checkout master
$ git fetch
$ git merge --ff-only
$ git tag release/1.0.0
$ git push origin release/1.0.0