-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up sbt-ci-release and Github Actions
- Loading branch information
Showing
4 changed files
with
43 additions
and
17 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,12 @@ | ||
name: CI | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/cache-action@v5 | ||
- uses: olafurpg/setup-scala@v10 | ||
- run: sbt +test |
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,19 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [master, main] | ||
tags: ["*"] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: olafurpg/setup-scala@v10 | ||
- 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ scalaVersion in ThisBuild := "2.13.3" | |
|
||
crossScalaVersions in ThisBuild := Seq(scalaVersion.value, "2.12.8") | ||
|
||
|
||
|
||
val library = | ||
crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Pure) | ||
|
@@ -18,19 +20,14 @@ val library = | |
"org.scalatestplus" %%% "scalacheck-1-15" % "3.2.3.0" % Test, | ||
"com.typesafe.play" %%% "play-json" % "2.9.2" | ||
), | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org" | ||
if (isSnapshot.value) Some("snapshots" at s"$nexus/content/repositories/snapshots") | ||
else Some("releases" at s"$nexus/service/local/staging/deploy/maven2") | ||
}, | ||
pomExtra := | ||
<developers> | ||
<developer> | ||
<id>julienrf</id> | ||
<name>Julien Richard-Foy</name> | ||
<url>http://julien.richard-foy.fr</url> | ||
</developer> | ||
</developers>, | ||
developers := List( | ||
Developer( | ||
"julienrf", | ||
"Julien Richard-Foy", | ||
"[email protected]", | ||
url("http://julien.richard-foy.fr") | ||
) | ||
), | ||
homepage := Some(url(s"https://github.com/julienrf/${name.value}")), | ||
licenses := Seq("MIT License" -> url("http://opensource.org/licenses/mit-license.php")), | ||
scmInfo := Some( | ||
|
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,7 +1,5 @@ | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") | ||
|
||
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.5.0") | ||
|
||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.3.0") | ||
|
||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") |