From 98c650446df665aaa65c1d1839efc64d34e73d85 Mon Sep 17 00:00:00 2001 From: Lars Aaberg Date: Sun, 10 Mar 2024 22:01:30 +0100 Subject: [PATCH] Yet another attempt of getting deploy to work --- .github/workflows/maven-release.yml | 6 ++---- pom.xml | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 0d7d94f6..e7085e94 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -11,8 +11,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Docker Compose Action - uses: isbang/compose-action@v1.5.1 - name: Docker Compose Action uses: isbang/compose-action@v1.5.1 - name: Set up JDK 17 and Set up Maven Central Repository @@ -22,12 +20,12 @@ jobs: distribution: 'temurin' server-id: ossrh server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD + server-password: MAVEN_TOKEN gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: publish to maven central run: mvn -P release --batch-mode deploy env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_TOKEN: ${{ secrets.OSSRH_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} diff --git a/pom.xml b/pom.xml index bf8c08f8..e8686782 100644 --- a/pom.xml +++ b/pom.xml @@ -152,6 +152,12 @@ release + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + +