-
Notifications
You must be signed in to change notification settings - Fork 4
/
ci-release.sbt
62 lines (49 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
ThisBuild / scalaVersion := Version.scala
ThisBuild / crossScalaVersions := Vector(Version.scala)
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches := Seq(
RefPredicate.Equals(Ref.Branch("base")),
RefPredicate.StartsWith(Ref.Tag("v"))
)
ThisBuild / githubWorkflowJavaVersions := Seq(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 / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer("KS2003", "Yana Karpysheva", "karpyshev03@mail.ru", url("https://github.com/KS2003")),
Developer(
"mikhailchuryakov",
"Michail Churyakov",
"m.churyakov@tinkof.ru",
url("https://github.com/mikhailchuryakov")
),
Developer("odomontois", "Oleg Nizhnik", "odomontois@gmail.com", url("https://github.com/odomontois")),
Developer("road21", "Aleksey Troitskiy", "amtroitskiy@gmail,com", url("https://github.com/road21")),
Developer("saladNights", "Andrey Tarasov", "a.e.tarasov@tinkoff.ru", url("https://github.com/saladNights")),
Developer("skye17", "Anastasiya Ermolaeva", "a.ermolaeva@tinkoff.ru", url("https://github.com/skye17"))
)
ThisBuild / organization := "tf.tofu"
ThisBuild / organizationName := "Tofu"
ThisBuild / homepage := Some(url("https://github.com/tf-tofu/cherry"))
ThisBuild / description := "Universal Data design and transform language core"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/tofu-tf/cherry"),
"git@github.com:tofu-tf/cherry.git"
)
)
ThisBuild / githubWorkflowEnv += "CI" -> "true"