From 9ee17440aa277d68b4ff3ef1a36303c06b9d2c04 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Wed, 21 Aug 2024 16:38:19 -0700 Subject: [PATCH] Update update_book.yml --- .github/workflows/update_book.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_book.yml b/.github/workflows/update_book.yml index bed34184..dbbc351a 100644 --- a/.github/workflows/update_book.yml +++ b/.github/workflows/update_book.yml @@ -29,8 +29,8 @@ jobs: - name: Clean the site contents except for dev, pull contents of dev/ to main site run: | - # delete everything except the dev folder - find . ! -name "dev" -maxdepth 1 -delete + # delete everything except the dev and .git folders + find . -maxdepth 1 ! -name ".git" ! -name "dev" ! -name "." | xargs rm -rf # copy the contents of dev into the root cp -rf dev/* .