Skip to content

Commit

Permalink
Add sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Apr 4, 2022
1 parent 5aa58ab commit eacaa5d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ licenses := Seq(
)
)
homepage := Some(url("https://github.com/johanandren/futiles"))
publishMavenStyle := true
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
publishTo := sonatypePublishTo.value

scmInfo := Some(
ScmInfo(url("https://github.com/johanandren/futiles"), "git@github.com:johanandren/futiles.git")
Expand All @@ -73,8 +71,20 @@ ThisBuild / githubWorkflowJavaVersions := List(
JavaSpec.temurin("17")
)

// Disable publish for now
ThisBuild / githubWorkflowPublishTargetBranches := Seq()
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v")))
ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
)

ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Sbt(List("clean", "coverage", "test"), name = Some("Build project"))
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit eacaa5d

Please sign in to comment.