Skip to content

Commit

Permalink
introduce use of Evolution's release action and switch artifact publi…
Browse files Browse the repository at this point in the history
…shing to jFrog (#281)
  • Loading branch information
mr-git authored Sep 11, 2024
1 parent a998384 commit e00de79
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 7 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -87,4 +81,7 @@ developers := List(
)
)

enablePlugins(GitVersioning)
publishTo := Some(Resolver.evolutionReleases)

//addCommandAlias("check", "all versionPolicyCheck Compile/doc")
addCommandAlias("check", "show version")
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 1 addition & 0 deletions version.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ThisBuild / version := "5.1.3-SNAPSHOT"

0 comments on commit e00de79

Please sign in to comment.