-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove gh-pages sbt plugin (close #172)
- Loading branch information
Showing
6 changed files
with
60 additions
and
44 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
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,31 @@ | ||
name: RELEASE | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/cache-action@v6 | ||
|
||
- name: Make site | ||
run: sbt makeSite | ||
|
||
- name: Publish ScalaDoc | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: target/site | ||
clean: false | ||
|
||
- name: Deploy snowplow-maxmind-iplookups to Maven Central | ||
run: sbt ci-release | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.SONA_PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.SONA_PGP_SECRET }} | ||
SONATYPE_USERNAME: ${{ secrets.SONA_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONA_PASS }} |
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 |
---|---|---|
|
@@ -10,15 +10,12 @@ | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. | ||
*/ | ||
import sbt.Keys._ | ||
import sbt._ | ||
import Keys._ | ||
|
||
// Scaladocs | ||
import com.typesafe.sbt.sbtghpages.GhpagesPlugin.autoImport._ | ||
import com.typesafe.sbt.site.SitePlugin.autoImport.{makeSite, siteSubdirName} | ||
import com.typesafe.sbt.SbtGit.GitKeys.{gitBranch, gitRemoteRepo} | ||
import com.typesafe.sbt.site.SitePlugin.autoImport.siteSubdirName | ||
import com.typesafe.sbt.site.SiteScaladocPlugin.autoImport._ | ||
import com.typesafe.sbt.site.preprocess.PreprocessPlugin.autoImport._ | ||
|
||
// dynver plugin | ||
import sbtdynver.DynVerPlugin.autoImport._ | ||
|
@@ -51,15 +48,7 @@ object BuildSettings { | |
) | ||
|
||
lazy val docSettings = Seq( | ||
ghpagesPushSite := (ghpagesPushSite dependsOn makeSite).value, | ||
ghpagesNoJekyll := false, | ||
gitRemoteRepo := "[email protected]:snowplow/scala-maxmind-iplookups.git", | ||
gitBranch := Some("gh-pages"), | ||
SiteScaladoc / siteSubdirName := s"${version.value}", | ||
Preprocess / preprocessVars := Map("VERSION" -> version.value), | ||
ghpagesCleanSite / excludeFilter := new FileFilter { | ||
def accept(f: File) = true | ||
} | ||
) | ||
|
||
lazy val coverageSettings = Seq( | ||
|
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,6 +1,5 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.3") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") | ||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.13") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Project Documentation</title> | ||
<script language="JavaScript"> | ||
<!-- | ||
function doRedirect() | ||
{ | ||
window.location.replace("@VERSION@"); | ||
} | ||
doRedirect(); | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<a href="@VERSION@">Go to the project documentation | ||
</a> | ||
</body> | ||
</html> |