diff --git a/.github/workflows/sbt-build.yml b/.github/workflows/sbt-build.yml index d0cc281..cae763a 100644 --- a/.github/workflows/sbt-build.yml +++ b/.github/workflows/sbt-build.yml @@ -30,7 +30,7 @@ jobs: GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY_BORIS }} - name: Publish to Maven Repository - run: sbt publish + run: sbt ci-release env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} diff --git a/build.sbt b/build.sbt index 98e19ee..0e3aea8 100644 --- a/build.sbt +++ b/build.sbt @@ -32,11 +32,6 @@ homepage := Some(url("https://github.com/cdcent/hl7-pet")) pomIncludeRepository := { _ => false } //publishTo := Some("GitHub cdcgov Apache Maven Packages" at "https://maven.pkg.github.com/cdcgov/hl7-pet") -publishTo := { - val nexus = "https://oss.sonatype.org/" - if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") - else Some("releases" at nexus + "service/local/staging/deploy/maven2") -} credentials += Credentials( "Sonatype Nexus Repository Manager",