diff --git a/.github/workflows/deploy-to-maven-central.yml b/.github/workflows/deploy-to-maven-central.yml index 1841106..5f73e08 100644 --- a/.github/workflows/deploy-to-maven-central.yml +++ b/.github/workflows/deploy-to-maven-central.yml @@ -18,7 +18,7 @@ jobs: distribution: temurin - name: Build and deploy to Maven Central - run: mvn deploy -DrepositoryId=central -Durl=https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator + run: mvn deploy #-DrepositoryId=central -Durl=https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator# env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} diff --git a/.github/workflows/mvn-settings.xml b/.github/workflows/mvn-settings.xml index 0458c48..548c726 100644 --- a/.github/workflows/mvn-settings.xml +++ b/.github/workflows/mvn-settings.xml @@ -8,7 +8,7 @@ - sonatype + central ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} diff --git a/pom.xml b/pom.xml index 132c28e..485f26f 100644 --- a/pom.xml +++ b/pom.xml @@ -182,11 +182,24 @@ github https://maven.pkg.github.com/cdcgov/lib-hl7v2-nist-validator - - + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 + true + + central + + + + +