diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f90b3a3..e3382b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ on: jobs: build: - uses: metricshub/workflows/.github/workflows/maven-build.yml@v4 + uses: metricshub/workflows/.github/workflows/maven-build.yml@v7 with: jdkVersion: "17" debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1bafd41..3538b03 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ on: jobs: deploy: - uses: metricshub/workflows/.github/workflows/maven-central-deploy.yml@v4 + uses: metricshub/workflows/.github/workflows/maven-central-deploy.yml@v7 with: jdkVersion: "17" secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 612b361..75ca59c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ on: jobs: release: - uses: metricshub/workflows/.github/workflows/maven-central-release.yml@v4 + uses: metricshub/workflows/.github/workflows/maven-central-release.yml@v7 with: releaseVersion: ${{ inputs.releaseVersion }} developmentVersion: ${{ inputs.developmentVersion }} diff --git a/README.md b/README.md index 303cbe3..586562d 100644 --- a/README.md +++ b/README.md @@ -50,16 +50,16 @@ git config blame.ignoreRevsFile .git-blame-ignore-revs ## Release instructions -The artifact is deployed to Sonatype's [Maven Central](https://central.sonatype.com/). +The artifact is published to [Maven Central](https://central.sonatype.com/) through the +[Central Portal](https://central.sonatype.com/publishing) with the `central-publishing-maven-plugin` (server Id `central`, +authenticated with a Portal user token). Manual deployments require these credentials in your Maven `settings.xml`. -The actual repository URL is https://s01.oss.sonatype.org/, with server Id `ossrh` and requires credentials to deploy -artifacts manually. +It is strongly recommended to only use [GitHub Actions "Release to Maven Central"](actions/workflows/release.yml) to perform a release: -But it is strongly recommended to only use [GitHub Actions "Release to Maven Central"](actions/workflows/release.yml) to perform a release: - -* Manually trigger the "Release" workflow +* Manually trigger the "Release to Maven Central" workflow * Specify the version being released and the next version number (SNAPSHOT) -* Release the corresponding staging repository on [Sonatype's Nexus server](https://s01.oss.sonatype.org/) +* Publish the pending deployment on the [Central Portal](https://central.sonatype.com/publishing/deployments) + (the workflow uploads and validates it, but does not publish it automatically) * Merge the PR that has been created to prepare the next version ## License