Skip to content

Commit

Permalink
ci(sbt-build): switch to ci-release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Seun0925 authored and Seun0925 committed Sep 4, 2024
1 parent 2da9d57 commit 4ccf393
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sbt-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 0 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4ccf393

Please sign in to comment.