Skip to content

Commit

Permalink
Publish target site (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones authored Jan 9, 2024
1 parent c86323e commit ed96b4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,5 @@ jobs:
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site/target
publish_dir: site/target/site
keep_files: true
2 changes: 1 addition & 1 deletion .github/workflows/publish-gh-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site/target
publish_dir: site/target/site
keep_files: true
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ ThisBuild / githubWorkflowAddedJobs ++= Seq(
"github_token" -> "${{ secrets.GITHUB_TOKEN }}",
"publish_dir" -> {
val path = (ThisBuild / baseDirectory).value.toPath.toAbsolutePath
.relativize((site / target).value.toPath)
.relativize((site / makeSite / target).value.toPath)
// os-independent path rendering ...
(0 until path.getNameCount).map(path.getName).mkString("/")
},
Expand Down

0 comments on commit ed96b4a

Please sign in to comment.