-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GitHub Actions (#68)
Add support for GitHub Actions
- Loading branch information
Showing
10 changed files
with
71 additions
and
94 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: ci | ||
on: [push] | ||
name: CI | ||
on: | ||
push: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: olafurpg/setup-scala@v2 | ||
- name: Compile | ||
run: ./bin/sbt compile | ||
|
||
|
||
run: csbt compile |
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,13 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [master] | ||
tags: | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: olafurpg/setup-scala@v2 | ||
- name: Publish | ||
run: csbt ci-release |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,18 +12,19 @@ inThisBuild( | |
"[email protected]", | ||
url("https://geirsson.com") | ||
) | ||
), | ||
resolvers += Resolver.sonatypeRepo("releases"), | ||
scalaVersion := "2.12.8" | ||
) | ||
) | ||
) | ||
|
||
onLoadMessage := s"Welcome to sbt-ci-release ${version.value}" | ||
|
||
skip in publish := true // don't publish the root project | ||
|
||
lazy val plugin = project | ||
.settings( | ||
moduleName := "sbt-ci-release", | ||
sbtPlugin := true, | ||
sbtVersion in pluginCrossBuild := "1.0.4", | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0"), | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0"), | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.7"), | ||
|
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
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 +1 @@ | ||
sbt.version=1.2.8 | ||
sbt.version=1.3.2 |
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,14 +1,7 @@ | ||
unmanagedSourceDirectories.in(Compile) += | ||
baseDirectory.in(ThisBuild).value.getParentFile / | ||
"plugin" / "src" / "main" / "scala" | ||
addSbtPlugin( | ||
"io.get-coursier" % "sbt-coursier" % coursier.util.Properties.version | ||
) | ||
addSbtPlugin( | ||
"io.get-coursier" % "sbt-shading" % coursier.util.Properties.version | ||
) | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.7") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0") | ||
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value |
This file was deleted.
Oops, something went wrong.
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