Skip to content

Commit 6835050

Browse files
committed
Add instructions to publish a release
1 parent 8afbc6b commit 6835050

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,25 @@ A set of benchmarks is available in [benchmarks/src/main/java/dev/ludovic/netlib
9090
$> java -jar benchmarks/target/netlib-benchmarks.jar
9191
```
9292

93+
# Release
94+
95+
Update the version in the `**/pom.xml`, create a tag, and push it:
96+
97+
```
98+
$> export VERSION=3.0.3
99+
$> git checkout --detach HEAD
100+
$> sed -i -E "s/<version>[0-9]+\-SNAPSHOT<\/version>/<version>$VERSION<\/version>/g" **/pom.xml
101+
$> git commit -p -m "v$VERSION" **/pom.xml
102+
$> git tag v$VERSION
103+
$> git push origin v$VERSION
104+
```
105+
106+
That will trigger the upload of the package to Sonatype via Github Actions.
107+
108+
Then, go to https://oss.sonatype.org/, go to "Staging Repositories", verify the content of the package, "Close" the package, and finally click "Release" to deploy it to Maven Central.
109+
110+
Finally, go to https://github.com/luhenry/netlib/releases to update and publish the release on the Github repository.
111+
93112
# Thanks
94113

95114
This project has been largely inspired by [`netlib-java`](https://github.com/fommil/netlib-java) and [@fommil](https://github.com/fommil)'s hard work.

0 commit comments

Comments
 (0)