Skip to content

Commit 135162b

Browse files
committed
Don't delete .git files
1 parent ec4dad7 commit 135162b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-latest-minor-gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
echo "Copying static files into place..."
5252
cp -R charts domains "$GITHUB_WORKSPACE/WORK"
5353
cd $GITHUB_WORKSPACE/gh-pages
54-
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -exec rm -Rf {} \;
54+
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -not -name '.git*' -exec rm -Rf {} \;
5555
cp -R $GITHUB_WORKSPACE/WORK/* .
5656
git config --global user.name "github-actions[bot]"
5757
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
5858
git add --all
5959
git commit -m "Documentation update from publish GitHub Action"
60-
git push origin gh-pages
60+
git push origin gh-pages

0 commit comments

Comments
 (0)