Skip to content

Commit c7f4a43

Browse files
authored
Merge pull request #613 from jeffgbutler/release-instructions
Release process
2 parents d97c153 + 194ef16 commit c7f4a43

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

RELEASING.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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`

pom.xml

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@
7777

7878
<build>
7979
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-site-plugin</artifactId>
83+
<configuration>
84+
<skipDeploy>true</skipDeploy>
85+
</configuration>
86+
</plugin>
8087
<plugin>
8188
<groupId>org.apache.maven.plugins</groupId>
8289
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)