-
Notifications
You must be signed in to change notification settings - Fork 23
Generating a new VI release
tobolar edited this page Mar 14, 2022
·
3 revisions
=== DRAFT ===
When creating a new release then these are the normal steps one should take. The guidelines below take v2.0.0
as an example version.
- Check and update in the Modelica Library
-
version and date: following annotations in the
VehicleInterfaces
(or mainpackage.mo
):- version
- versionDate
- dateModified
-
library description in the
VehicleInterfaces
(or mainpackage.mo
): i.e.package VehicleInterfaces "VehicleInterfaces Library (Version 2.0.0) - Interface definitions ...
-
dependencies: annotation
uses
in theVehicleInterfaces
(or mainpackage.mo
). -
conversion: annotation
conversion
in theVehicleInterfaces
(or mainpackage.mo
). -
copyright date in
VehicleInterfaces.UsersGuide.License
. - release notes in
VehicleInterfaces.UsersGuide.ReleaseNotes
.
-
version and date: following annotations in the
- Check proper version number and date in
- VehicleInterfaces/libraryinfo.mos
- Update the copyright date/year in the following files:
- LICENSE.txt located in the GitHub repository and intended to have transparent information on root and front page.
- Files in VehicleInterfaces/Resources/Licenses, intended for the tools to pack the necessary license information when creating derived work (imagine FMUs).
- Commit / pull / pull request / merge the abovementioned changes accordingly into
master
. - Checkout the
master
branch and make sure it is in sync with the officialupstream
repository https://github.com/modelica/VehicleInterfaces$ git checkout master $ git pull upstream
- Tag the release and also annotate the tag at the same time with some meaningful message. Do not push the tag yet.
$ git tag -a -m "Final release 2.0.0 of the VehicleInterfaces" v2.0.0
- Generate a zip archive of the tagged version. Thanks to the settings in the
.gitattributes
file this will- fill in place holders like
revisionId
automatically
$ git archive --format=zip -o /tmp/VehicleInterfaces_v2.0.0.zip v2.0.0
- fill in place holders like
- Double check the created zip file and if satisfied push the tag to upstream
$ git push origin v2.0.0
- The directories inside the zip archive need to be renamed:
-
VehicleInterfaces
→VehicleInterfaces 2.0.0
-
- Go to the Releases page and edit the pushed tag and add the created zip file as an asset.