From e00de79eaedbfed216dde83ea0e4fe4cf7751e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mareks=20Ramp=C4=81ns?= <8796159+mr-git@users.noreply.github.com> Date: Wed, 11 Sep 2024 20:38:51 +0300 Subject: [PATCH] introduce use of Evolution's release action and switch artifact publishing to jFrog (#281) --- .github/workflows/release.yml | 11 +++++++++++ build.sbt | 17 +++++++---------- project/plugins.sbt | 2 +- version.sbt | 1 + 4 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 version.sbt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a8a2f2b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,11 @@ +name: Publish new Release + +on: + release: + types: [published] + branches: [master] + +jobs: + release: + uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v1 + secrets: inherit diff --git a/build.sbt b/build.sbt index 1de2ef7..54eb2b9 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,4 @@ -import sbt.librarymanagement.For3Use2_13 import Dependencies._ -import org.scoverage.coveralls.Imports.CoverallsKeys._ def crossSettings[T](scalaVersion: String, if3: T, if2: T) = { scalaVersion match { @@ -13,13 +11,13 @@ name := "scache" organization := "com.evolution" -homepage := Some(new URL("http://github.com/evolution-gaming/scache")) +homepage := Some(url("https://github.com/evolution-gaming/scache")) startYear := Some(2019) -organizationName := "Evolution Gaming" +organizationName := "Evolution" -organizationHomepage := Some(url("http://evolutiongaming.com")) +organizationHomepage := Some(url("https://evolution.com")) coverageExcludedFiles := ".*CacheOpsCompat.*" scalaVersion := crossScalaVersions.value.head @@ -65,10 +63,6 @@ licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))) description := "Cache in Scala with cats-effect" -sonatypeCredentialHost := "s01.oss.sonatype.org" - -sonatypeRepository := "https://s01.oss.sonatype.org/service/local" - Test / publishArtifact := false scmInfo := Some( @@ -87,4 +81,7 @@ developers := List( ) ) -enablePlugins(GitVersioning) +publishTo := Some(Resolver.evolutionReleases) + +//addCommandAlias("check", "all versionPolicyCheck Compile/doc") +addCommandAlias("check", "show version") diff --git a/project/plugins.sbt b/project/plugins.sbt index fd33603..a6f09f3 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,7 +2,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8") addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.9") -addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") +addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9") diff --git a/version.sbt b/version.sbt new file mode 100644 index 0000000..8201990 --- /dev/null +++ b/version.sbt @@ -0,0 +1 @@ +ThisBuild / version := "5.1.3-SNAPSHOT"