Skip to content

Commit

Permalink
Move settings to project build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seun0925 authored and Seun0925 committed Aug 23, 2024
1 parent f7480a4 commit f700367
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/sbt-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions project/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f700367

Please sign in to comment.