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 }}
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
+
+