The project is released with the normal Maven release cycle except for the site.
- Get authorization to Sonatype and make sure your GPG key is setup and registered per instructions here: https://github.com/mybatis/committers-stuff/wiki/Release-Process
- Make sure your SSH key is setup at GitHub
- Update the release date in the CHANGELOG
- Clone the main repo (with ssh), checkout the master branch
- mvn release:prepare
- mvn release:perform
- Logon to https://oss.sonatype.org/
- Find the mybatis staging repo
- Verify everything looks OK
- Close the repo
- Release the repo
Automatic site deployment plugin is broken on Mac M1 and with newer keys on any platform. Therefore, it is disabled in the normal release. Here's how to do it manually:
- Clone the main repo and checkout the release tag:
git clone [email protected]:mybatis/mybatis-dynamic-sql.git
cd mybatis-dynamic-sql
git checkout mybatis-dynamic-sql-1.5.1
./mvnw clean site
- Checkout a copy of the main repo in a temp directory:
mkdir ~/temp/temp-mybatis
cd ~/temp/temp-mybatis
git clone [email protected]:mybatis/mybatis-dynamic-sql.git
cd mybatis-dynamic-sql
git checkout gh-pages
- Copy the generated site into the temp checkout:
cp -R <<source git>>/mybatis-dynamic-sql/target/site/ ~/temp/temp-mybatis/mybatis-dynamic-sql
- Push the new site:
cd ~/temp/temp-mybatis/mybatis-dynamic-sql
git add .
git commit -m "Manual Site Update 1.5.1"
git push
- Delete the temporary checkout
rm -R ~/temp/temp-mybatis
Draft a new release on GitHub and tie it to the new release tag.