Skip to content

Commit

Permalink
publish to github packages with dynver versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
huajiang-tubi committed Dec 19, 2024
1 parent b5a2911 commit f7e5b09
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ThisBuild / scmInfo := Some(
"scm:[email protected]:adRise/sbt-codeartifact.git"
)
)

githubTokenSource := TokenSource.GitConfig("github.token")

lazy val testSettings: Seq[Setting[_]] = Seq(
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq(
Expand Down
5 changes: 5 additions & 0 deletions core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ libraryDependencies ++= Seq(
)

testFrameworks += new TestFramework("utest.runner.Framework")

githubOwner := "adRise"
githubRepository := "sbt-codeartifact"
publishMavenStyle := true
githubTokenSource := TokenSource.GitConfig("github.token")
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.4")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")

addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")

addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
5 changes: 5 additions & 0 deletions sbt-codeartifact/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ test := {
(Test / test).value
scripted.toTask("").value
}

githubOwner := "adRise"
githubRepository := "sbt-codeartifact"
publishMavenStyle := true
githubTokenSource := TokenSource.GitConfig("github.token")

0 comments on commit f7e5b09

Please sign in to comment.