Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 1900c3c

Browse files
committed
Move to sbt-ci-release
1 parent bb5904f commit 1900c3c

File tree

6 files changed

+47
-55
lines changed

6 files changed

+47
-55
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master, main]
5+
tags: ["*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: olafurpg/setup-scala@v13
14+
- run: sbt test ci-release
15+
env:
16+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
17+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
18+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
19+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1+
inThisBuild(
2+
List(
3+
organization := "net.exoego",
4+
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
5+
scmInfo := Some(
6+
ScmInfo(
7+
url("https://github.com/exoego/scala-js-nodejs"),
8+
"scm:git:[email protected]:exoego/scala-js-nodejs.git"
9+
)
10+
),
11+
homepage := scmInfo.value.map(_.browseUrl),
12+
developers := List(
13+
Developer(
14+
id = "exoego",
15+
name = "TATSUNO Yasuhiro",
16+
email = "[email protected]",
17+
url = url("https://www.exoego.net")
18+
)
19+
)
20+
)
21+
)
22+
123
lazy val scala213 = "2.13.8"
224
lazy val scala212 = "2.12.15"
3-
ThisBuild / organization := "net.exoego"
425
ThisBuild / crossScalaVersions := Seq(scala213, scala212)
526
ThisBuild / scalaVersion := scala213
627
Global / excludeLintKeys ++= Set(publishArtifact, scalacOptions)

project/MySettings.scala

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -84,51 +84,11 @@ object MySettings {
8484
)
8585

8686
lazy val publishingSettings = Seq(
87-
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
88-
scmInfo := Some(
89-
ScmInfo(
90-
url("https://github.com/exoego/scala-js-nodejs"),
91-
"scm:git:[email protected]:exoego/scala-js-nodejs.git"
92-
)
93-
),
94-
homepage := scmInfo.value.map(_.browseUrl),
95-
developers := List(
96-
Developer(
97-
id = "exoego",
98-
name = "TATSUNO Yasuhiro",
99-
email = "[email protected]",
100-
url = url("https://www.exoego.net")
101-
)
102-
),
103-
publishMavenStyle := true,
10487
Test / publishArtifact := false,
10588
Compile / packageDoc / publishArtifact := true,
10689
Compile / packageSrc / publishArtifact := true,
107-
packageDoc / publishArtifact := true,
10890
pomIncludeRepository := { _ =>
10991
false
110-
},
111-
publishTo := Some(
112-
if (isSnapshot.value)
113-
Opts.resolver.sonatypeSnapshots
114-
else
115-
Opts.resolver.sonatypeStaging
116-
),
117-
publishConfiguration := publishConfiguration.value.withOverwrite(false),
118-
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
119-
releaseIgnoreUntrackedFiles := true,
120-
releaseProcess := Seq[ReleaseStep](
121-
checkSnapshotDependencies,
122-
inquireVersions,
123-
runClean,
124-
runTest,
125-
setReleaseVersion,
126-
commitReleaseVersion,
127-
tagRelease,
128-
releaseStepCommandAndRemaining("+publishSigned"),
129-
setNextVersion,
130-
commitNextVersion,
131-
releaseStepCommand("sonatypeReleaseAll")
132-
)
92+
}
13393
)
13494
}

project/plugins.sbt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")
2-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
3-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10")
4-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
5-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
6-
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")
2+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
3+
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
4+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
5+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.9")

script/release.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

version.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)