Skip to content

Commit 1b560e6

Browse files
authored
Merge pull request #31 from sjrd/sbt-ci-release
Set up sbt-ci-release.
2 parents 5f7e20a + 1b0de27 commit 1b560e6

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [main]
5+
tags: ["*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v5
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-java@v5
14+
with:
15+
java-version: 8
16+
distribution: adopt
17+
- uses: sbt/setup-sbt@v1
18+
- uses: coursier/cache-action@v6
19+
- run: sbt ci-release
20+
env:
21+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
22+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
23+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
24+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ val previousVersion: Option[String] = Some("1.4.0")
44
val newScalaBinaryVersionsInThisRelease: Set[String] = Set("3")
55

66
inThisBuild(Def.settings(
7-
version := "1.4.1-SNAPSHOT",
87
organization := "org.scala-js",
98
scalaVersion := "2.12.11",
109
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.2", "3.3.7"),
@@ -27,14 +26,6 @@ inThisBuild(Def.settings(
2726
Some("scm:git:git@github.com:scala-js/scala-js-js-envs.git"))),
2827

2928
// Publishing
30-
publishMavenStyle := true,
31-
publishTo := {
32-
val nexus = "https://oss.sonatype.org/"
33-
if (version.value.endsWith("-SNAPSHOT"))
34-
Some("snapshots" at nexus + "content/repositories/snapshots")
35-
else
36-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
37-
},
3829
pomExtra := (
3930
<developers>
4031
<developer>
@@ -113,6 +104,14 @@ val commonSettings = Def.settings(
113104

114105
lazy val root = project
115106
.in(file("."))
107+
.aggregate(
108+
`scalajs-js-envs`,
109+
`scalajs-js-envs-test-kit`,
110+
`scalajs-env-nodejs`,
111+
)
112+
.settings(
113+
publish / skip := true,
114+
)
116115

117116
lazy val `scalajs-js-envs` = project
118117
.in(file("js-envs"))

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
22
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.8.1")
3+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

0 commit comments

Comments
 (0)