From 9651076d85305385f826ea42fb942e6f1b34d105 Mon Sep 17 00:00:00 2001 From: "david.owusu" Date: Wed, 13 Aug 2025 11:46:40 +0200 Subject: [PATCH 1/2] [CC-1936] Remove broken/outdated jobs. Update release workflow to publish to central maven repo. --- .github/workflows/release.yml | 49 +++-------------------------------- pom.xml | 23 +++++++--------- 2 files changed, 12 insertions(+), 60 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d17d91b..b617a16a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} @@ -22,49 +22,6 @@ jobs: - name: Publish package run: mvn --batch-mode -DskipTests=true deploy env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_PUBLISH_USER }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PUBLISH_TOKEN }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - send-email: - name: Send release Email - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Decode configuration - env: - CONFIG: ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }} - run: | - echo $CONFIG | base64 --decode > release.yaml - - name: Run release-automator - uses: unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main - with: - command: mail - version: ${{github.ref_name}} - - generate-tweet: - name: Generate tweet - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Decode configuration - env: - CONFIG: ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }} - run: | - echo $CONFIG | base64 --decode > release.yaml - - name: Run release-automator - uses: unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main - with: - command: tweet - version: ${{github.ref_name}} - - name: Copy out tweet file - run: | - sudo cp target/tweet.txt tweet.txt - - name: Attach release notes - uses: actions/upload-artifact@v3 - with: - name: tweet - path: tweet.txt - retention-days: 5 diff --git a/pom.xml b/pom.xml index bfec26f9..c8dc0c5c 100755 --- a/pom.xml +++ b/pom.xml @@ -47,19 +47,6 @@ 2.0.1 - - - ossrh - Snapshot Repository OSSRH - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - Central Repository OSSRH - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - @@ -165,7 +152,6 @@ - org.apache.maven.plugins maven-gpg-plugin @@ -204,6 +190,15 @@ + + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 + true + + central + + From 3b7d1fdb2a6d532043e413b8b27e7206261f6988 Mon Sep 17 00:00:00 2001 From: "david.owusu" Date: Wed, 13 Aug 2025 12:03:14 +0200 Subject: [PATCH 2/2] [CC-1936] Also Update manual release workflow to publish to central maven repo. --- .github/workflows/manual_publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual_publish.yml b/.github/workflows/manual_publish.yml index 1ae69581..dd3bb98f 100644 --- a/.github/workflows/manual_publish.yml +++ b/.github/workflows/manual_publish.yml @@ -13,7 +13,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} @@ -21,6 +21,6 @@ jobs: - name: Publish package run: mvn --batch-mode -DskipTests=true deploy env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_PUBLISH_USER }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PUBLISH_TOKEN }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}