Skip to content

Commit

Permalink
attempt to fix github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rolang committed Jul 13, 2024
1 parent c3f2c69 commit 948ddec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
run: sbt +publishLocal
- name: Check website build process
run: sbt docs/clean; sbt docs/buildWebsite
- name: Adjust baseUrl in website build
run: 'sed -i "s/baseUrl:.*/baseUrl: \"\/zio-pibsub\/\",/g" zio-pubsub-docs/target/website/docusaurus.config.js && sbt docs/buildWebsite'
- name: Upload website build
uses: actions/upload-pages-artifact@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ inThisBuild(
name = s.name,
run = Some("sbt '+Test/compile; +examples/compile'"),
)
case s @ Step.SingleStep("Check website build process", _, _, _, _, _, _) =>
Step.StepSequence(
Seq(
s,
Step.SingleStep(
"Adjust baseUrl in website build",
run = Some(
"""sed -i "s/baseUrl:.*/baseUrl: \"\/zio-pibsub\/\",/g" zio-pubsub-docs/target/website/docusaurus.config.js && sbt docs/buildWebsite"""
),
),
)
)
case s => s
} :+ Step.SingleStep(
name = "Upload website build",
Expand Down Expand Up @@ -308,6 +320,7 @@ lazy val docs = project
readmeCodeOfConduct := "See the [Code of Conduct](CODE_OF_CONDUCT.md)",
readmeCredits := """|Inspired by libraries like [zio-kafka](https://github.com/zio/zio-kafka)
|and [fs2-pubsub](https://github.com/permutive-engineering/fs2-pubsub) to provide a similar experience.""".stripMargin,
// docusaurusPublishGhpages := docusaurusPublishGhpages.value,
)
.enablePlugins(WebsitePlugin)
.dependsOn(zioPubsub.jvm, zioPubsubGoogle)

0 comments on commit 948ddec

Please sign in to comment.