Skip to content

Commit 0ccbb73

Browse files
committed
Merge dev: cleanup stale gh-pages files
2 parents dcf208a + 45baea9 commit 0ccbb73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/book-publish-live.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,12 @@ jobs:
10311031
echo "🗑️ Clearing existing book/ directory..."
10321032
rm -rf book/
10331033

1034+
# Clean up stale root-level files from old deployment structure
1035+
echo "🧹 Removing stale root-level files..."
1036+
rm -rf contents/ assets/ site_libs/ tools/
1037+
rm -f _redirects netlify.toml search.json sitemap.xml site.webmanifest 404.html
1038+
echo "✅ Stale files removed"
1039+
10341040
# Create book directory and copy new content
10351041
echo "📦 Deploying textbook to /book/..."
10361042
mkdir -p book

0 commit comments

Comments
 (0)