fix(deploy): remove symlinks and dev artifacts from gh-pages

The .claude symlink pointing to local path was breaking GitHub Pages
artifact upload. Also cleans up __pycache__, .vscode, and other
development artifacts that should not be in gh-pages.
This commit is contained in:
Vijay Janapa Reddi
2026-01-07 07:55:21 -05:00
parent 6af21ccf8f
commit 1b89ac5aa6

View File

@@ -1035,6 +1035,12 @@ jobs:
echo "🧹 Removing stale root-level files..."
rm -rf contents/ assets/ site_libs/ tools/
rm -f _redirects netlify.toml search.json sitemap.xml site.webmanifest 404.html
# Remove development artifacts and symlinks that break GitHub Pages
echo "🧹 Removing development artifacts..."
rm -rf __pycache__/ .vscode/ .tito/ benchmark_results/ mlsysbook.egg-info/
rm -f .luarc.json
rm -rf .claude .github # Remove symlinks and dev-only directories
echo "✅ Stale files removed"
# Create book directory and copy new content