Skip to content

Commit a42e3ef

Browse files
authored
Add documentation about manually releasing
1 parent fda6404 commit a42e3ef

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

‎RELEASE.md‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,28 @@ If you are not familiar with Sonatype and/or the maven release process please re
3939

4040
You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically.
4141

42-
[bumpversion]: https://pypi.python.org/pypi/bumpversion
42+
[bumpversion]: https://pypi.python.org/pypi/bumpversion
43+
44+
### Manually releasing
45+
46+
The above steps should work, but we've run into situations where the archive uploading through CI has failed because IP changes caused multiple staging repositories to be created in Sonatype, each with different pieces of the full set of artifacts. If this happens, the repositories won't be able to be closed and released on the Sonatype website.
47+
48+
Uploading the archives locally with the following command solves this problem:
49+
50+
```bash
51+
./gradlew uploadArchives -Psigning.keyId=<keyId> -Psigning.password=<keyPassword> -Psigning.secretKeyRingFile=<pathToKeyRingFile> -PossrhUsername=<sonatypeUsername> -PossrhPassword=<sonatypePassword>
52+
```
53+
54+
The arguments should be populated with the following:
55+
- `-Psigning.keyId`: The ID of your public key you created after following the link in the prerequisites
56+
- `-Psigning.password`: Your password you created for making public GPG keys
57+
- `-Psigning.secretKeyRingFile`: After creating your public key, you create your keyring file with the following command and use the absolute path to your new file:
58+
59+
```bash
60+
gpg --export-secret-keys -o <outputFilename>.gpg
61+
```
62+
63+
- `-PossrhUsername`: Your Sonatype username
64+
- `-PossrhPassword`: Your Sonatype password
65+
66+
Assuming this command works properly, you should be able to then log into Sonatype and close and release the repository as usual.

0 commit comments

Comments
 (0)