Before using scripts available in this project please check whether:
- You have an account with commit access for the vivo-project on github. As a committer, you should already have this level of access.
- You have an account with edit privileges on the lyrasis.org Confluence wiki.
- You have an oss.sonatype.org account and have requested to be given permission to publish to the org.vivoweb groupId by adding a comment to the VIVO Sonatype Hosting Ticket
- You have configured maven settings file in accordance with instructions available at - https://wiki.lyrasis.org/display/VIVO/VIVO+Release+Process
Please, configure variables in defineVariables.sh. You can test publishing process over forked version of vivo-project repositories, in that case variable ORG is set up to your github account, while PERSONAL_ACCESS_TOKEN is set up to token configured for your github repositories.
- Open a bash (Git bash or Linux terminal)
- Run ./prepareReleaseCandidate.sh
- Check whether a new branch and new tag are created in both repositories (VIVO and Vitro)
- Create a wiki page with release candidate testing instructions (you can copy this one)
- Announce in the VIVO dissemination channels (mailing lists, Slack channels) that new release candidate is published, define deadline in the announcement for testing and providing feedback 1If some requests or important issues have been noticed since the moment of making announcement in the point 5 in the section above, consider with VIVO tech group fixing that and publishing the new release candidate (2, 3, 4, ...). If there is no, go to the next point.
- Run ./publishReleaseVitro.sh
- Check new release in the Vitro GitHub repository
- Complete publishing process via central sonatype repository
- Go to https://central.sonatype.com/ (Maven Central Repository)
- Click on Log In (Top Right Corner) and use your central sonatype id from your settings.xml file
- Click Publish in top right corner and click on Deployments
- Check whether everything looks ok - war, pom, jar, md5, asc, etc.
- If everything is ok, Click on Publish (otherwise Click on Drop and fix the issue and start releasing process again)
- In a couple of minutes, new artefacts will be available at https://repo1.maven.org/maven2/org/vivoweb.
- Wait until the Vitro release is available in the maven repository (http://repo1.maven.org/maven2/org/vivoweb). This make take several hours or one day.
- Run ./publishReleaseVIVO.sh
- Check new release in the VIVO GitHub repository
- Complete publishing process via central sonatype repository
- Go to https://central.sonatype.com/ (Maven Central Repository)
- Click on Log In (Top Right Corner) and use your central sonatype id from your settings.xml file
- Click Publish in top right corner and click on Deployments
- Check whether everything looks ok - war, pom, jar, md5, asc, etc.
- If everything is ok, Click on Publish (otherwise Click on Drop and fix the issue and start releasing process again)
- In a couple of minutes, new artefacts will be available at https://repo1.maven.org/maven2/org/vivoweb.
- Make release announcement and update technical documentation at wiki
- Distribute the message that new release has been published
- Run ./pushToMaintenance.sh
- Manually check the GitHub repositories branches and tags, as well as the main branch (pom.xml files should be updated to include new version number)