Skip to content

Commit e881558

Browse files
committed
Document publishing steps.
1 parent 113939a commit e881558

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CONTRIBUTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,26 @@ Before making a PR to this repository look out for the following guidelines.
2929

3030
**NOTE**: The `model` directory is **read-only** make sure not to edit it.
3131

32+
## Publishing
33+
34+
Publishing requires the presence of a `~/.gradle.properties` file:
35+
36+
```shell
37+
signing.keyId=x1234567
38+
signing.password=
39+
signing.secretKeyRingFile=/Users/user/.gnupg/secring.gpg
40+
41+
sonatypeUsername=xxxxxx
42+
sonatypePassword=
43+
```
44+
45+
The `secring.gpg` file can be generated with:
46+
47+
```shell
48+
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
49+
```
50+
51+
```shell
52+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
53+
```
54+

0 commit comments

Comments
 (0)