Skip to content

Commit 75bc41d

Browse files
committed
Auto gh-pages publish setting
1 parent 2e32189 commit 75bc41d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ jobs:
3535
if: ${{ matrix.java-version == 11 }}
3636
shell: bash
3737
run: sbt -v makeSite
38+
- if: ${{ github.repository_owner == 'sbt' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
39+
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
40+
with:
41+
folder: target/site

build.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ lazy val jacocoPlugin = (project in file("."))
99
.enablePlugins(SbtPlugin)
1010
.enablePlugins(BuildInfoPlugin)
1111
.enablePlugins(ParadoxSitePlugin)
12-
.enablePlugins(GhpagesPlugin)
1312
.settings(nocomma {
1413
name := "sbt-jacoco"
1514

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ addSbtPlugin("com.github.sbt" % "sbt-header" % "5.11.0")
66
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
77
addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.7.0")
88
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.9.2")
9-
addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.9.0")
109
addSbtPlugin("com.eed3si9n" % "sbt-nocomma" % "0.1.2")
1110

1211
libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % "always"

0 commit comments

Comments
 (0)