Skip to content

Commit

Permalink
Fix book deploy (#2215)
Browse files Browse the repository at this point in the history
Avoid deleting `.git` etc
  • Loading branch information
Schaeff authored Dec 10, 2024
1 parent d7170e1 commit 8450f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
# Delete everything except the `dev` folder, as it contains benchmarks we should keep.
find . -mindepth 1 -maxdepth 1 ! -name "dev" -exec rm -rf {} +
find . -mindepth 1 -maxdepth 1 ! -name "dev" ! -name ".*" -exec rm -rf {} +
mv ../book/* .
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
Expand Down

0 comments on commit 8450f6a

Please sign in to comment.