A OpenLIME software release is always generated by tagging the main branch.
OpenLIME adopted the SemVer version scheme, i.e. the release version is named according to the following format:v.<MAJOR>.<MINOR>.<PATCH>
, where <MAJOR>
, <MINOR>
and <PATCH>
are three numbers (e.g. v1.0.4) .
The process of building a release is partly manual and partly automatic. When the software is sufficiently mature to be released, the following steps can be taken:
- Check out to the main branch, and put everything in a clean state
- Choose a new release version ID (
v<MAJOR>.<MINOR>.<PATCH>
) - Edit the file
./jsdoc/releases/rel-v<MAJOR>.<MINOR>.<PATCH>.md
. Describe the new release and add information about the new features in the What's new session. - Add and commit the file, and push the main branch to the github host
- Tag the release (create an annotated tag):
git tag -a v<MAJOR>.<MINOR>.<PATCH> -m "<MESSAGE>"
- Push the tag to the github host:
git push origin --tags
The latter will trigger a github action that will create a new release on github with the release notes and the released software.
To delete a release created by mistake, follow these steps:
- In a browser, open the github OpenLIME page. Select the release and press the delete button (top right).
- From the shell
- Delete the remote tag:
git push --delete origin v<MAJOR>.<MINOR>.<PATCH>
- Delete the local tag:
git tag -d v<MAJOR>.<MINOR>.<PATCH>