-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for github actions release process
- Loading branch information
1 parent
9fac485
commit f4683ee
Showing
4 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [master, main] | ||
tags: ["*"] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: sbt | ||
- run: sbt ci-release | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
val releaseV = "4.0.0" | ||
publish / skip := true | ||
|
||
val scala212V = "2.12.15" | ||
val scala213V = "2.13.7" | ||
|
@@ -39,8 +39,22 @@ val commonDeps = Seq( | |
lazy val Ci = config("ci").extend(Test) | ||
|
||
ThisBuild / organization := "com.github.scullxbones" | ||
ThisBuild / version := releaseV | ||
ThisBuild / scalaVersion := scalaV | ||
ThisBuild / versionScheme := Some("semver-spec") | ||
|
||
import xerial.sbt.Sonatype._ | ||
|
||
ThisBuild / sonatypeProjectHosting := Some(GitHubHosting("scullxbones", "akka-persistence-mongo", "[email protected]")) | ||
ThisBuild / licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")) | ||
ThisBuild / developers := List( | ||
Developer( | ||
"scullxbones", | ||
"Brian Scully", | ||
"@scullxbones", | ||
url("https://github.com/scullxbones/") | ||
) | ||
) | ||
ThisBuild / homepage := Some(url("https://github.com/scullxbones/akka-persistence-mongo")) | ||
|
||
val commonSettings = Seq( | ||
scalaVersion := scalaV, | ||
|
@@ -52,8 +66,6 @@ val commonSettings = Seq( | |
"com.typesafe.akka" %% "akka-stream" % akkaV, | ||
"org.mongodb" % "mongodb-driver-legacy" % MongoJavaDriverVersion | ||
), | ||
version := releaseV, | ||
organization := "com.github.scullxbones", | ||
scalacOptions ++= Seq( | ||
"-unchecked", | ||
"-deprecation", | ||
|
@@ -131,14 +143,15 @@ lazy val `akka-persistence-mongo-tools` = (project in file("tools")) | |
.settings( | ||
libraryDependencies ++= Seq( | ||
"org.mongodb.scala" %% "mongo-scala-driver" % "2.7.0" % "compile" | ||
) | ||
), | ||
publish / skip := true, | ||
) | ||
.configs(Ci) | ||
|
||
lazy val `akka-persistence-mongo` = (project in file(".")) | ||
.aggregate(`akka-persistence-mongo-common`, `akka-persistence-mongo-rxmongo`, `akka-persistence-mongo-scala`, `akka-persistence-mongo-tools`) | ||
.settings( | ||
crossScalaVersions := Nil, | ||
skip in publish := true, | ||
publish / skip := true, | ||
publishTo := Some(Resolver.file("file", new File("target/unusedrepo"))) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value | ||
|
||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10") | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") |
This file was deleted.
Oops, something went wrong.