|
| 1 | +# Release Information |
| 2 | + |
| 3 | +The project is released with the normal Maven release cycle except for the site. |
| 4 | + |
| 5 | +## Pre-Requisites |
| 6 | + |
| 7 | +1. Get authorization to Sonatype and make sure your GPG key is setup and registered per instructions here: |
| 8 | + https://github.com/mybatis/committers-stuff/wiki/Release-Process |
| 9 | +2. Make sure your SSH key is setup at GitHub |
| 10 | + |
| 11 | +## Release Process |
| 12 | + |
| 13 | +1. Clone the main repo (with ssh), checkout the master branch |
| 14 | +2. mvn release:prepare |
| 15 | +3. mvn release:perform |
| 16 | +4. Logon to https://oss.sonatype.org/ |
| 17 | +5. Find the mybatis staging repo |
| 18 | +6. Verify everything looks OK |
| 19 | +7. Close the repo |
| 20 | +8. Release the repo |
| 21 | + |
| 22 | +## Update the Site |
| 23 | + |
| 24 | +Automatic site deployment plugin is broken on Mac M1 and with newer keys on any platform. Therefore, it is disabled |
| 25 | +in the normal release. Here's how to do it manually: |
| 26 | + |
| 27 | +1. Clone the main repo and checkout the release tag: |
| 28 | + - `git clone [email protected]:mybatis/mybatis-dynamic-sql.git` |
| 29 | + - `cd mybatis-dynamic-sql` |
| 30 | + - `git checkout mybatis-dynamic-sql-1.5.0` |
| 31 | +2. `./mvnw clean site` |
| 32 | +3. Checkout a copy of the main repo in a temp directory: |
| 33 | + - `mkdir ~/temp/temp-mybatis` |
| 34 | + - `cd ~/temp/temp-mybatis` |
| 35 | + - `git clone [email protected]:mybatis/mybatis-dynamic-sql.git` |
| 36 | + - `git checkout gh-pages` |
| 37 | +4. Copy the generated site into the temp checkout: |
| 38 | + - `cp -R <<source git>>/mybatis-dynamic-sql/target/site ~/temp/temp-mybatis/mybatis-dynamic-sql` |
| 39 | +5. Push the new site: |
| 40 | + - `cd ~/temp/temp-mybatis/mybatis-dynamic-sql` |
| 41 | + - `git add .` |
| 42 | + - `git commit -m "Manual Site Update 1.5.0"` |
| 43 | + - `git push` |
| 44 | +6. Delete the temporary checkout |
| 45 | + - `rm -R ~/temp/temp-mybatis` |
0 commit comments