Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Commit cea5210

Browse files
committed
docs: document release via Travis
1 parent 9b37ead commit cea5210

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,28 @@ Git repository typically contains -SNAPSHOT versions, so you can use the followi
5050

5151
## Releasing a new version
5252

53+
### Release via Travis
54+
55+
To release a branch via Travis, perform the following:
56+
57+
TL;DR:
58+
59+
git checkout -B release/master origin/master
60+
git push origin release/master
61+
62+
1. Check if `pom.xml` includes proper `-SNAPSHOT` versions (release versions would be the ones without `-SNAPSHOT`)
63+
1. Check if there are `RELx.y.z` tags left behind from unsuccessful release attempts
64+
1. Push `release/master` branch to pointing to the commit you want to release
65+
66+
Travis would build new version, create a tag, update `pom.xml` to the next snapshot versions, and update `master` branch accordingly.
67+
68+
Note: the artifacts will not be visible in Maven Central before you manually release them.
69+
70+
1. Navigate to [Sonatype Nexus Repository Manager](https://oss.sonatype.org/#stagingRepositories), find staging `orgpostgresql` repository there and release it
71+
72+
73+
### Manual release
74+
5375
Procedure:
5476

5577
To commit updates to version in `pom.xml` files and create a tag, issue:
@@ -66,6 +88,13 @@ If staged artifacts look fine, release it
6688

6789
mvn nexus-staging:release -DstagingRepositoryId=orgpostgresql-1082
6890

91+
### In case release fails
92+
93+
In case release fails, the following cleanup is required:
94+
95+
1. Git tags. For instance: `git push origin :RELx.y.z`
96+
1. Drop staging repository (if exists). Navigate to [Sonatype Nexus Repository Manager](https://oss.sonatype.org/#stagingRepositories), find staging `orgpostgresql` repository there and drop it
97+
6998
## Dependencies
7099

71100
`pgjdbc-parent-poms` has little to no dependencies itself. It just lists defaults to be used by core `pgjdbc` project.

0 commit comments

Comments
 (0)