-
Notifications
You must be signed in to change notification settings - Fork 40
/
ci-release.sbt
48 lines (43 loc) · 1.62 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
ThisBuild / scalaVersion := Dependencies.Version.scala213
ThisBuild / crossScalaVersions := Seq(
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(JavaSpec.temurin("8"), JavaSpec.temurin("17"))
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("early-semver")
ThisBuild / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer(
"Odomontois",
"Oleg Nizhnik",
url("https://github.com/Odomontois")
)
)
ThisBuild / homepage := Some(url("https://manatki.org/docs/derevo"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/tofu-tf/derevo"), "scm:git:[email protected]:tofu-tf/derevo.git")
)
ThisBuild / organization := "tf.tofu"
ThisBuild / organizationName := "Tofu"