Skip to content

Commit 26c39d2

Browse files
fix: include hidden files in preview build artifact (closes #469)
The search index lives in docs/dist/.vocs/ (a hidden directory). actions/upload-artifact@v4 excludes hidden files by default, so the .vocs directory was missing from the uploaded artifact. This caused the search index to be absent from preview deployments, breaking the native search (/) on all preview URLs. Adding include-hidden-files: true ensures the .vocs directory (and any other hidden assets) are included in the artifact.
1 parent 2a2c3a4 commit 26c39d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/preview-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ jobs:
4141
with:
4242
name: preview-build
4343
path: docs/dist
44+
include-hidden-files: true
4445
if-no-files-found: error
4546
retention-days: 1

0 commit comments

Comments
 (0)