From f700367a9055cdd6db70307e166f7cf7cbd333f7 Mon Sep 17 00:00:00 2001 From: Seun0925 Date: Fri, 23 Aug 2024 11:15:57 -0500 Subject: [PATCH] Move settings to project build --- .github/workflows/sbt-build.yml | 14 +++++++------- project/build.sbt | 12 ++++++++++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sbt-build.yml b/.github/workflows/sbt-build.yml index 2c5d031..f663408 100644 --- a/.github/workflows/sbt-build.yml +++ b/.github/workflows/sbt-build.yml @@ -21,13 +21,13 @@ jobs: java-version: "21" cache: "sbt" - - name: Publish to Maven Repository - run: sbt ci-release - env: - PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + # - name: Publish to Maven Repository + # run: sbt ci-release + # env: + # PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + # PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} + # SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + # SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - name: Publish to GitHub Packages run: sbt publish diff --git a/project/build.sbt b/project/build.sbt index 78e5093..4bd2a6d 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -13,9 +13,17 @@ inThisBuild(List( )) pomIncludeRepository := { _ => false } +publishTo := Some("GitHub cdcgov Apache Maven Packages" at "https://maven.pkg.github.com/cdcgov/hl7-pet") +credentials += Credentials( + "GitHub Package Registry", + "maven.pkg.github.com", + "cdcgov", + System.getenv("GITHUB_TOKEN") +) + // version := "1.2.10" // scalaVersion := "2.13.13" -// mainClass := Some("gov.cdc.hl7pet.DeIdentifierApp") +mainClass := Some("gov.cdc.hl7pet.DeIdentifierApp") -// publishArtifact in (Compile, packageSrc) := true +publishArtifact in (Compile, packageSrc) := true