Add the following configuration to your build.sbt
:
// publish to github packages settings
publishTo := Some("GitHub <GITHUB_OWNER> Apache Maven Packages" at "https://maven.pkg.github.com/<GITHUB_OWNER>/<GITHUB_PROJECT>"),
publishMavenStyle := true,
credentials += Credentials(
"GitHub Package Registry",