Skip to content

Commit d8e19da

Browse files
committed
Add another fix to remove specific files only
1 parent 824c5ba commit d8e19da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
git checkout -b dist
3636
3737
# Remove all existing files except the .gitignore file
38-
git rm -r --ignore-unmatch .
38+
git ls-files | grep -v '^docs/' | xargs git rm
3939
git checkout HEAD -- .gitignore
4040
4141
# Copy only the content of the HTML folder to the root of the repository

0 commit comments

Comments
 (0)