Skip to content

Commit 4859c48

Browse files
authored
[CI] Clean up target repository before publishing documentation. (#55)
1 parent 2ec9098 commit 4859c48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
git clone https://github.com/${TARGET_REPO}.git target_repo
3434
cd target_repo
3535
git checkout main
36+
find . -mindepth 1 -maxdepth 1 ! -name ".github" ! -name "." ! -name ".git" -exec rm -rf {} +
3637
cp -r ../docs/_build/html/* ./
3738
git add .
3839
if [[ -n "$(git status --porcelain)" ]]; then

0 commit comments

Comments
 (0)