From f3ac40a9ad38d40ed98ebdf0c31fa885b8b452f8 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:49:22 +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 a8a2f2b..1979907 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 cae3be2..da3cc2d 100644 --- a/build.sbt +++ b/build.sbt @@ -14,7 +14,6 @@ scalacOptions := Seq( "-release:17", "-Xsource:3", ) -releaseCrossBuild := true publishTo := Some(Resolver.evolutionReleases) // sbt-release versionPolicyIntention := Compatibility.BinaryCompatible // sbt-version-policy diff --git a/project/plugins.sbt b/project/plugins.sbt index 0fcf233..8387206 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 7a95729..0000000 --- a/version.sbt +++ /dev/null @@ -1 +0,0 @@ -ThisBuild / version := "3.0.3-SNAPSHOT"