Skip to content

Commit 00aba17

Browse files
committed
Fix cross-platform duplicate .well-known path handling
1 parent f5e38cf commit 00aba17

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
jobs:
1010
build:
1111
name: Build and Test
12-
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
1316
steps:
1417
- uses: actions/checkout@v6
1518
- uses: actions/setup-java@v5
@@ -22,7 +25,7 @@ jobs:
2225
scala-cli-version: 1.12.2
2326
- run: scala-cli fmt --check .
2427
- run: scala-cli --server=false build.scala
25-
- if: github.event_name != 'pull_request'
28+
- if: matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request'
2629
uses: peaceiris/actions-gh-pages@v4.0.0
2730
with:
2831
github_token: ${{ secrets.GITHUB_TOKEN }}

build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ object LaikaBuild {
8686
).toURL()
8787

8888
InputTree[IO]
89+
// Exclude `.well-known` from the main `src` scan to avoid duplicates; it is added explicitly below for consistent cross-platform behavior.
90+
.withFileFilter(FileFilter.lift(_.name == ".well-known"))
8991
.addDirectory("src")
90-
// Laika skips .dotfiles by default
9192
.addDirectory("src/.well-known", Path.Root / ".well-known")
9293
.addInputStream(
9394
IO.blocking(securityPolicy.openStream()),

0 commit comments

Comments
 (0)