Skip to content

Commit b00201d

Browse files
authored
fix: copy dotfiles (.nojekyll) in docs deployment (#58)
cp -r dist/* doesn't copy dotfiles, causing .nojekyll to be missing from gh-pages. Use cp -r dist/. . instead to include all files including dotfiles.
1 parent b4d36e6 commit b00201d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
# Create or switch to gh-pages branch
7373
git checkout gh-pages 2>/dev/null || git checkout --orphan gh-pages
7474
75-
# Clean and copy new docs (preserve .git directory)
75+
# Clean and copy new docs (preserve .git directory, include dotfiles)
7676
find . -mindepth 1 -not -path './.git' -not -path './.git/*' -delete
77-
cp -r ../docs/dist/* .
77+
cp -r ../docs/dist/. .
7878
7979
# Commit and push if there are changes
8080
git add -A

0 commit comments

Comments
 (0)