Skip to content

Commit 956f990

Browse files
committed
Update sona release process
1 parent beb31df commit 956f990

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Continuous Integration](https://github.com/WandererXII/scalashogi/actions/workflows/ci.yml/badge.svg)](https://github.com/WandererXII/scalashogi/actions/workflows/ci.yml)
2-
[![Maven Central](https://img.shields.io/maven-central/v/io.github.WandererXII/scalashogi_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.WandererXII%22%20AND%20a:%22scalashogi_2.13%22)
1+
[![Build and test](https://github.com/WandererXII/scalashogi/actions/workflows/build.yml/badge.svg)](https://github.com/WandererXII/scalashogi/actions/workflows/build.yml)
2+
[![Maven Central](https://img.shields.io/maven-central/v/io.github.wandererxii/scalashogi_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.wandererxii%22%20AND%20a:%22scalashogi_2.13%22)
33

44
Shogi API forked from [scalachess](https://github.com/lichess-org/scalachess) and rewritten for shogi.
55
Used on [lishogi.org](https://lishogi.org).

doc/PUBLISH.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# sbt-version-policy
1+
# Publishing
22

3-
Set new version.
4-
5-
Then just run `sbt publishSigned`.
6-
7-
Go to `https://s01.oss.sonatype.org/`, select the project, click **Close** from the menu, and then **Release**.
3+
1. Set new version in build.sbt
4+
2. Start sbt server - `sbt`.
5+
3. Run `publishSigned` inside sbt console.
6+
4. Run `sonaUpload` inside sbt console and then publish on 'https://central.sonatype.com/'. Or run `sonaRelease` to both upload and publish.

publish.sbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ThisBuild / organization := "io.github.WandererXII"
1+
ThisBuild / organization := "io.github.wandererxii"
22
ThisBuild / organizationName := "WandererXII"
33
ThisBuild / organizationHomepage := Some(url("https://lishogi.org"))
44

@@ -28,9 +28,9 @@ ThisBuild / homepage := Some(url("https://github.com/WandererXII/scalashogi"))
2828
ThisBuild / pomIncludeRepository := { _ => false }
2929

3030
ThisBuild / publishTo := {
31-
val nexus = "https://s01.oss.sonatype.org/"
32-
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
33-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
31+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
32+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
33+
else localStaging.value
3434
}
3535

3636
ThisBuild / publishMavenStyle := true

0 commit comments

Comments
 (0)