Skip to content

Commit 28d1e53

Browse files
committed
🐛 Fix: Upload docs/book/html not docs/book
FOUND THE BUG! mdbook outputs to docs/book/html/ but we were uploading docs/book/. This is why cmux.io returns 404 - no index.html in the artifact root!
1 parent 8d5bc01 commit 28d1e53

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ jobs:
6464

6565
- name: Copy CNAME to build output
6666
run: |
67-
cp docs/CNAME docs/book/CNAME
68-
echo "✅ CNAME file copied to build output:"
69-
cat docs/book/CNAME
67+
cp docs/CNAME docs/book/html/CNAME
68+
echo "✅ CNAME file copied to docs/book/html/"
69+
cat docs/book/html/CNAME
7070
echo ""
71-
echo "📦 Files in build output:"
72-
ls -la docs/book/ | head -20
71+
echo "📦 Files in build output (docs/book/html/):"
72+
ls -la docs/book/html/ | head -20
7373
echo ""
7474
echo "🔍 Checking for index.html:"
75-
ls -lh docs/book/index.html || echo "❌ index.html not found!"
75+
ls -lh docs/book/html/index.html
7676
7777
- name: Upload artifact
7878
uses: actions/upload-pages-artifact@v3
7979
with:
80-
path: ./docs/book
80+
path: ./docs/book/html
8181

8282
deploy:
8383
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)