From 48d631b5e1e53d58d05f621b5c8f5aedefaeac01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mareks=20Ramp=C4=81ns?= <8796159+mr-git@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:22:50 +0200 Subject: [PATCH] switch to release workflow v2 --- .github/workflows/release.yml | 10 +++++----- build.sbt | 1 - project/plugins.sbt | 2 +- version.sbt | 1 - 4 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 version.sbt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8a2f2b9e..1979907f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ -name: Publish new Release +name: Publish Release on: - release: - types: [published] - branches: [master] + push: + tags: + - 'v*' jobs: release: - uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v1 + uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v2 secrets: inherit diff --git a/build.sbt b/build.sbt index abc8bf47d..2f85e12b2 100644 --- a/build.sbt +++ b/build.sbt @@ -19,7 +19,6 @@ lazy val commonSettings = Seq( Compile / doc / scalacOptions -= "-Xfatal-warnings", publishTo := Some(Resolver.evolutionReleases), licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))), - releaseCrossBuild := true, // explanation of flags: https://www.scalatest.org/user_guide/using_the_runner (`Configuring reporters` section) Test / testOptions ++= Seq(Tests.Argument(TestFrameworks.ScalaTest, "-oUDNCXEHLOPQRM")), libraryDependencies += compilerPlugin(`kind-projector` cross CrossVersion.full), diff --git a/project/plugins.sbt b/project/plugins.sbt index 2f8006c1e..f4597230f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,7 +2,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.2") addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.14") -addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0") +addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0") addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9") diff --git a/version.sbt b/version.sbt deleted file mode 100644 index b78781c4c..000000000 --- a/version.sbt +++ /dev/null @@ -1 +0,0 @@ -ThisBuild / version := "4.1.1-SNAPSHOT"