asciidoctor / asciidoctor-leanpub-converter

A backend for AsciidoctorJ to generate Leanpub-flavoured Markdown
Apache License 2.0
16 stars 9 forks source link

Upgrade to gradle-nexus/publish-plugin and add GitHub action to publi… #90

Open robertpanzer opened 1 year ago

robertpanzer commented 1 year ago

…sh to Sonatype

This PR updates the build to use the newer gradle-nexus/publish-plugin, which is the official successor and replacement of the previous 2 plugins for nexus-staging and nexus-publishing. I copied the same GitHub action for publishing a build to Sonatype from AsciidoctorJ.

To release a version to Sonatype the project version should be a release version, i.e., no -SNAPSHOT version. A release can be built and published by selecting the "Actions" menu and then the "Release" workflow. On the right side you can find a drop down "Run workflow" which allows to trigger the execution of the flow.

Before this will work the following secrets have to created in an environment named release:

I don't have the permissions to create secrets in this repo right now.

I also upgraded the version of gradle, since the current version did not allow to sign the artifacts with my new key, the provided version of bouncycastle seems to be too old.