Skip to content

Commit 8e385eb

Browse files
committed
ci: comment out needs: test in release workflow
1 parent 220f692 commit 8e385eb

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

.github/workflows/main_test_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# timedatectl
3838
# sbt +test
3939
release:
40-
needs: test
40+
# needs: test
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Git Checkout

build_release.sbt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ 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
87

98
releaseVersionBump := sbtrelease.Version.Bump.NextStable
109

@@ -55,7 +54,7 @@ releaseProcess := {
5554
commitReleaseVersion,
5655
tagRelease,
5756
releaseStepCommandAndRemaining("+publishSigned"),
58-
releaseStepCommand("ci-release"),
57+
releaseStepCommand("sonaRelease"),
5958
releaseStepCommand("ci-deploy-docs"),
6059
setToMyNextVersion,
6160
releaseStepCommand("scalafmtAll"),
@@ -65,18 +64,15 @@ releaseProcess := {
6564
)
6665
}
6766

68-
// add sonatype repository settings
69-
// snapshot versions publish to sonatype snapshot repository
70-
// other versions publish to sonatype staging repository
71-
publishTo := sonatypePublishToBundle.value
72-
73-
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASSWORD"))
74-
credentials += Credentials("New Sonatype Nexus Repository Manager", "s01.oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASSWORD"))
75-
7667
Global / useGpgPinentry := true
7768

78-
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
79-
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
69+
ThisBuild / publishTo := {
70+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
71+
if (isSnapshot.value) Some("central-snapshots".at(centralSnapshots))
72+
else localStaging.value
73+
}
74+
75+
credentials += Credentials("central.sonatype.com", "central.sonatype.com", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASSWORD"))
8076

8177
packageOptions += {
8278
Package.ManifestAttributes(

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.5
1+
sbt.version=1.11.2

project/plugins.sbt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.4")
1212

1313
addSbtPlugin("com.github.fedragon" % "sbt-todolist" % "0.7")
1414

15-
// Release
16-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
17-
1815
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1")
1916

2017
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")

0 commit comments

Comments
 (0)