mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 17:20:21 -05:00
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:
6
.github/workflows/book-publish-live.yml
vendored
6
.github/workflows/book-publish-live.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user