Tag modules using Git

Version Date Notes By
0.1 2022-05-04 Initial release BRB

Notes

Before any client update, you must first update each module's master branch and tag it using Git. You may use apps like GitHub Desktop or GitKraken, but this guide will be using console commands. Make sure that there are no translations left to merge into the backend's development branch.

Commands to follow

  1. Start with opening the console on your backend folder e.g. /var/www/sgi-backend/.

cd /var/www/sgi-backend/

  1. Make sure you're in the develop branch and pull the latest commits.
git checkout develop
git pull
  1. Update the changelog with the latest tag and date and then push into 'develop' branch.
git add CHANGELOG.md
git commit -m "Updated changelog"
git push
  1. Merge the 'develop' branch into 'master'.
git checkout master
git pull
git merge develop
git push
  1. Finally, tag the module using the same number in the changelog (you can also look at the latest tag in gitlab to confirm).
git tag  1.0.0 (check latest tag)
git push origin  1.0.0 (check latest tag)