-
Notifications
You must be signed in to change notification settings - Fork 6
/
ci.sbt
54 lines (49 loc) · 2.04 KB
/
ci.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import _root_.io.github.nafg.mergify.dsl.*
mergifyExtraConditions := Seq(
(Attr.Author :== "scala-steward") ||
(Attr.Author :== "nafg-scala-steward[bot]")
)
val githubUrl = url("https://github.com/nafg/slick-additions")
inThisBuild(List(
scmInfo :=
Some(ScmInfo(browseUrl = githubUrl, connection = "scm:git:[email protected]/nafg/slick-additions.git")),
homepage := Some(githubUrl),
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("nafg", "Naftoli Gugenheim", "[email protected]", url("https://github.com/nafg"))
),
dynverGitDescribeOutput ~= (_.map(o => o.copy(dirtySuffix = sbtdynver.GitDirtySuffix("")))),
dynverSonatypeSnapshots := true,
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowBuildPostamble ++=
Seq(
WorkflowStep.Sbt(
commands = List(
"slick-additions-codegen/Test/runMain slick.additions.codegen.CodeGen",
"test-codegen/compile"
),
name = Some("Check that codegen output compiles")
),
WorkflowStep.Run(
commands = List(
"git diff --exit-code --quiet HEAD slick-additions-codegen/src/test/resources"
),
name = Some("Check that codegen output hasn't changed")
),
WorkflowStep.Run(List("mkdir -p slick-additions-entity/.js/target"))
),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11")),
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
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 }}"
)
)
)
))
sonatypeProfileName := "io.github.nafg"