Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-git committed Jul 18, 2024
1 parent bb1ceb3 commit ce86d9f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 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
14 changes: 11 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import Dependencies._
import ReleaseTransformations._
import Dependencies.*
import ReleaseTransformations.*

import scala.collection.Seq

val Scala213 = "2.13.14"
val Scala212 = "2.12.19"
val Scala3 = "3.3.3"

val commonSettings = Seq(
homepage := Some(new URL("https://github.com/evolution-gaming/play-json-tools")),
homepage := Some(url("https://github.com/evolution-gaming/play-json-tools")),
publishTo := Some(Resolver.evolutionReleases),
organizationName := "Evolution",
organizationHomepage := Some(url("https://evolution.com")),
Expand All @@ -29,9 +31,15 @@ val commonSettings = Seq(
},
)

val alias: Seq[sbt.Def.Setting[?]] =
// addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
addCommandAlias("check", "show version") ++
addCommandAlias("build", "+all compile test")

lazy val root = project
.in(file("."))
.disablePlugins(MimaPlugin)
.settings(alias)
.settings(
commonSettings,
publish / skip := true,
Expand Down

0 comments on commit ce86d9f

Please sign in to comment.