Skip to content

Commit b8f54d4

Browse files
committed
Fix doc publishing
1 parent 00e5794 commit b8f54d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+18
-14
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- uses: actions/setup-java@v1
2222
with:
2323
java-version: 12
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: '12.x'
2427
- uses: olafurpg/setup-gpg@v2
2528
if: startsWith(github.ref, 'refs/tags/v')
2629
- name: Publish ${{ github.ref }}
@@ -30,10 +33,6 @@ jobs:
3033
PGP_SECRET: ${{ secrets.PGP_SECRET }}
3134
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3235
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
33-
34-
- uses: actions/setup-node@v1
35-
with:
36-
node-version: '12.x'
3736
- name: Update docs
3837
run: |
3938
git config --global user.name "ScalaPB Docs"
@@ -46,6 +45,8 @@ jobs:
4645
yarn deploy
4746
env:
4847
TOKEN: ${{secrets.DEPLOY_KEY}}
48+
USE_SSH: true
49+
GIT_USER: git
4950

5051
scalapbc:
5152
runs-on: ubuntu-latest

build.sbt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ lazy val e2eNoJava = (projectMatrix in file("e2e-nojava"))
291291
)
292292

293293
lazy val docs = project
294-
.in(file("scalapb-docs"))
295294
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)
296295
.dependsOn(runtimeJVM2_12)
297296
.settings(commonSettings)
298297
.settings(
298+
publish / skip := true,
299299
scalaVersion := Scala212,
300300
crossScalaVersions := Seq(Scala212),
301301
libraryDependencies ++= Seq(
@@ -306,7 +306,7 @@ lazy val docs = project
306306
"com.lihaoyi" %% "os-lib" % "0.5.0",
307307
"org.plotly-scala" %% "plotly-render" % "0.7.2"
308308
),
309-
// mdocIn := baseDirectory.value / "src" / "main" / "markdown",
309+
mdocIn := baseDirectory.value / "src" / "main" / "markdown",
310310
siteSubdirName in ScalaUnidoc := "api/scalapb/latest",
311311
addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc),
312312
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(
@@ -318,11 +318,10 @@ lazy val docs = project
318318
cleanFiles += (target in (ScalaUnidoc, unidoc)).value,
319319
docusaurusCreateSite := docusaurusCreateSite.dependsOn(unidoc in Compile).value,
320320
docusaurusPublishGhpages := docusaurusPublishGhpages.dependsOn(unidoc in Compile).value,
321-
322321
mdocVariables := Map(
323-
"scalapb" -> "0.10.8",
324-
"sbt_protoc" -> "0.99.34",
325-
"protoc" -> "3.11.4",
322+
"scalapb" -> "0.10.8",
323+
"sbt_protoc" -> "0.99.34",
324+
"protoc" -> "3.11.4",
326325
"sparksql_scalapb" -> "0.10.4"
327326
),
328327
git.remoteRepo := "[email protected]:scalapb/scalapb.github.io.git",
@@ -331,5 +330,5 @@ lazy val docs = project
331330
includeFilter in ghpagesCleanSite := GlobFilter(
332331
(ghpagesRepository.value / "README.md").getCanonicalPath
333332
)
334-
*/
333+
*/
335334
)

0 commit comments

Comments
 (0)