From b62ee7694caf52752097d306e3c7eec41e066643 Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Wed, 19 Jun 2024 09:41:33 +0200 Subject: [PATCH] chore: publish release artifacts via sonatype central portal --- .github/workflows/create-release.yml | 8 +++----- .github/workflows/deploy-snapshot.yml | 13 ++++++------- pom.xml | 17 +++++++++-------- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 374cd23..df58698 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,8 +12,6 @@ jobs: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} GPG_KEY: ${{ secrets.GPG_KEY }} - MVN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_SERVER_USERNAME }} - MVN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SERVER_PASSWORD }} - MVN_REPO_SERVER_ID: ${{ secrets.MVN_REPO_SERVER_ID }} - MVN_REPO_SERVER_RELEASE_URL: ${{ secrets.MVN_REPO_SERVER_RELEASE_URL }} - + MVN_REPO_RELEASE_SERVER_ID: ${{ secrets.MVN_REPO_RELEASE_SERVER_ID }} + MVN_REPO_RELEASE_SERVER_USERNAME: ${{ secrets.MVN_REPO_RELEASE_SERVER_USERNAME }} + MVN_REPO_RELEASE_SERVER_PASSWORD: ${{ secrets.MVN_REPO_RELEASE_SERVER_PASSWORD }} diff --git a/.github/workflows/deploy-snapshot.yml b/.github/workflows/deploy-snapshot.yml index 450dda1..9f9e20f 100644 --- a/.github/workflows/deploy-snapshot.yml +++ b/.github/workflows/deploy-snapshot.yml @@ -2,16 +2,15 @@ name: (📡) Deploy Snapshot on: push: - branches: - - main + branches: + - "main" workflow_dispatch: jobs: deploy: uses: sitepark/github-project-workflow/.github/workflows/maven-deploy-snapshot.yml@release/1.x secrets: - MVN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_SERVER_USERNAME }} - MVN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SERVER_PASSWORD }} - MVN_REPO_SERVER_ID: ${{ secrets.MVN_REPO_SERVER_ID }} - MVN_REPO_SERVER_SNAPSHOT_URL: ${{ secrets.MVN_REPO_SERVER_SNAPSHOT_URL }} - + MVN_REPO_SNAPSHOT_SERVER_ID: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_ID }} + MVN_REPO_SNAPSHOT_SERVER_USERNAME: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_USERNAME }} + MVN_REPO_SNAPSHOT_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_PASSWORD }} + MVN_REPO_SNAPSHOT_SERVER_URL: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_URL }} diff --git a/pom.xml b/pom.xml index 81d5fa8..4331d07 100644 --- a/pom.xml +++ b/pom.xml @@ -393,7 +393,8 @@ - + com.github.spotbugs spotbugs @@ -437,18 +438,18 @@ - nexus-staging-release + publish-release - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 true - ossrh - https://s01.oss.sonatype.org/ - true + central + true + published