Skip to content

Commit 220f692

Browse files
committed
build: migrate to sbt-ci-release and update Sonatype hosting config
- Replaces `sbt-sonatype` with `sbt-ci-release` for improved CI release integration. - Updates Sonatype repository configuration in `build_release.sbt`. - Comments out the `test` job in GitHub Actions workflow.
1 parent bc0551a commit 220f692

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

.github/workflows/main_test_release.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@ on:
99
types: [build]
1010

1111
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
mongodb-version: ['4.4', '5.0', '6.0', '7.0', '8.0']
17-
java: [ '21', '23' ]
18-
steps:
19-
- uses: actions/checkout@main
20-
- name: Setup TimeZone
21-
uses: szenius/set-timezone@master
22-
with:
23-
timezoneLinux: "Europe/Berlin"
24-
timezoneMacos: "Europe/Berlin"
25-
timezoneWindows: "W. Europe Standard Time"
26-
- name: Set up JDK ${{ matrix.Java }}
27-
uses: coursier/setup-action@main
28-
with:
29-
jvm: corretto:${{ matrix.Java }}
30-
apps: sbt scala scalac
31-
- name: Start MongoDB ${{ matrix.mongodb-version }}
32-
uses: MongoCamp/mongodb-github-action@main
33-
with:
34-
mongodb-version: ${{ matrix.mongodb-version }}
35-
- name: Run tests
36-
run: |
37-
timedatectl
38-
sbt +test
12+
# test:
13+
# runs-on: ubuntu-latest
14+
# strategy:
15+
# matrix:
16+
# mongodb-version: ['4.4', '5.0', '6.0', '7.0', '8.0']
17+
# java: [ '21', '23' ]
18+
# steps:
19+
# - uses: actions/checkout@main
20+
# - name: Setup TimeZone
21+
# uses: szenius/set-timezone@master
22+
# with:
23+
# timezoneLinux: "Europe/Berlin"
24+
# timezoneMacos: "Europe/Berlin"
25+
# timezoneWindows: "W. Europe Standard Time"
26+
# - name: Set up JDK ${{ matrix.Java }}
27+
# uses: coursier/setup-action@main
28+
# with:
29+
# jvm: corretto:${{ matrix.Java }}
30+
# apps: sbt scala scalac
31+
# - name: Start MongoDB ${{ matrix.mongodb-version }}
32+
# uses: MongoCamp/mongodb-github-action@main
33+
# with:
34+
# mongodb-version: ${{ matrix.mongodb-version }}
35+
# - name: Run tests
36+
# run: |
37+
# timedatectl
38+
# sbt +test
3939
release:
4040
needs: test
4141
runs-on: ubuntu-latest

build_release.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseKeys.versions
44
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
55
import sbtrelease.ReleasePlugin.runtimeVersion
66
import scala.sys.process._
7+
import xerial.sbt.Sonatype.sonatypeCentralHost
78

89
releaseVersionBump := sbtrelease.Version.Bump.NextStable
910

@@ -54,7 +55,7 @@ releaseProcess := {
5455
commitReleaseVersion,
5556
tagRelease,
5657
releaseStepCommandAndRemaining("+publishSigned"),
57-
releaseStepCommand("sonatypeBundleRelease"),
58+
releaseStepCommand("ci-release"),
5859
releaseStepCommand("ci-deploy-docs"),
5960
setToMyNextVersion,
6061
releaseStepCommand("scalafmtAll"),
@@ -75,6 +76,7 @@ credentials += Credentials("New Sonatype Nexus Repository Manager", "s01.oss.son
7576
Global / useGpgPinentry := true
7677

7778
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
79+
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
7880

7981
packageOptions += {
8082
Package.ManifestAttributes(

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.4")
1313
addSbtPlugin("com.github.fedragon" % "sbt-todolist" % "0.7")
1414

1515
// Release
16-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
16+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
1717

1818
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1")
1919

0 commit comments

Comments
 (0)