This is a procedure for how to create a release of the WRA Data Model.
The release is from the master branch. Ideally all merges over the course of maintenance or development were merged into
the dev
branch. Therefore, the dev
branch will be cleaned up first.
- In the
dev
branch update the version number in:- the actual JSON Schema file itself,
- all the relevant demo implementation files in the demo_data folder,
- the CHANGELOG file and
- the description of the SQL create table file.
- Do a pull request to merge the
dev
branch intomaster
. - The documentation is automatically generated when there is a merge into
master
. Make sure that this has completed successfully. - Go to 'Releases' on GitHub and 'Draft a new release'.
- For the 'Choose a tag' create a new tag by typing in the name e.g. "v1.2.0-2023.01". Ensure you copy the format exactly
including the "v" as this will be included in the URL to find the assets that may be hardcoded in software.
- The target for the tag should be the
master
branch. However, a recent commit can be selected. Selecting a recent commit would be more informative as the last commit is usually the 'Compile Documentation' commit which is not informative. In this instance the commit for "update version number to 1.2.0-2023.01" is selected.
- The target for the tag should be the
- For the 'Release title' type in the same as the name for the tag but without the "v". E.g. "1.2.0-2023.01". The real reason for this only to be consistent with previous releases.
- In the 'Describe this release' box, copy and paste the contents from the CHANGELOG file that are relevant to this release.
- Attach the JSON Schema file as an asset so this can be retrieved via code. Ensure that you are copying the most up-to-date schema file which has the correct version number.
- Publish release.