File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,20 @@ jobs:
116116 echo "Docs build script not found" >&2
117117 exit 1
118118 fi
119+ if [ ! -d dist ]; then
120+ echo "Docs build output not found at dist/" >&2
121+ exit 1
122+ fi
119123 else
120- echo "No docs/package.json found; skipping docs build"
121- mkdir -p build
122- echo '<html><body><h1>No docs found</h1></body></html>' > build/index.html
124+ echo "docs/package.json not found; docs site missing" >&2
125+ exit 1
126+ fi
127+
128+ - name : Verify docs output exists
129+ run : |
130+ if [ ! -d docs/dist ]; then
131+ echo "Docs build output not found at docs/dist" >&2
132+ exit 1
123133 fi
124134
125135 - name : Configure Pages
@@ -128,7 +138,7 @@ jobs:
128138 - name : Upload artifact
129139 uses : actions/upload-pages-artifact@v3
130140 with :
131- path : docs/build
141+ path : docs/dist
132142
133143 deploy :
134144 name : Deploy Docs
You can’t perform that action at this time.
0 commit comments