forked from tofu-tf/tofu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-release.sbt
65 lines (51 loc) · 2.12 KB
/
ci-release.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
55
56
57
58
59
60
61
62
63
64
65
ThisBuild / scalaVersion := Dependencies.Version.scala213
ThisBuild / crossScalaVersions := Vector(
Dependencies.Version.scala213,
Dependencies.Version.scala212
)
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches := Seq(
RefPredicate.Equals(Ref.Branch("master")),
RefPredicate.StartsWith(Ref.Tag("v"))
)
ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]", "[email protected]")
ThisBuild / githubWorkflowBuildPreamble += WorkflowStep.Sbt(
List("scalafmtCheckAll", "scalafmtSbtCheck"),
name = Some("Check formatting")
)
ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
name = Some("Publish artifacts"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
)
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer("catostrophe", "λoλcat", "[email protected]", url("https://github.com/catostrophe")),
Developer("danslapman", "Daniil Smirnov", "[email protected]", url("https://github.com/danslapman")),
Developer("odomontois", "Oleg Nizhnik", "[email protected]", url("https://github.com/odomontois")),
Developer("oskin1", "Ilya Oskin", "[email protected]", url("https://github.com/oskin1")),
)
ThisBuild / organization := "tf.tofu"
ThisBuild / organizationName := "Tofu"
ThisBuild / homepage := Some(url("https://github.com/tofu-tf/tofu"))
ThisBuild / description := "Opinionated set of tools for functional programming in Scala"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/tofu-tf/tofu"),
"[email protected]:tofu-tf/tofu.git"
)
)
ThisBuild / githubWorkflowBuildPostamble += WorkflowStep.Sbt(
name = Some("Generate docs"),
commands = List("docs/mdoc"),
cond = Some("startsWith(matrix.scala, '2.13')")
)
ThisBuild / githubWorkflowEnv += "CI" -> "true"