OpenHeartDevelopers / CemrgApp

An Interactive Medical Imaging Platform with Image Processing and Computer Vision Toolkits for Cardiovascular Research.
http://www.cemrgapp.com
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

[CI/CD] Update GitHub actions to update version.txt file before packaging new releases. #42

Closed alonsoJASL closed 3 years ago

alonsoJASL commented 3 years ago

We added a splashscreen that displays the CemrgApp logo, along with the current version and git sha code. As shown in the screenshot below.

To automate this in CemrgApp, the script versionOnsplashScreen.sh was written, which creates the version.txt file every time it's run.

The information in the versions.txt file is structured as:

VERSION
SHA

For example,

2.1.1
352da9b

The task is that every time a new version tag is created, the script is run, which will update the version.txt file and allow the build of CemrgApp to show the correct version and sha in the splash screen.

splashscreen_example
alonsoJASL commented 3 years ago

Notice that this is not crucial at the moment, and the way to update the version.txt file is can change if a better method is found.