Skip to content

Commit

Permalink
Don't delete .git files
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeberhard committed Jun 8, 2023
1 parent ec4dad7 commit 135162b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-latest-minor-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
echo "Copying static files into place..."
cp -R charts domains "$GITHUB_WORKSPACE/WORK"
cd $GITHUB_WORKSPACE/gh-pages
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -exec rm -Rf {} \;
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -not -name '.git*' -exec rm -Rf {} \;
cp -R $GITHUB_WORKSPACE/WORK/* .
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "Documentation update from publish GitHub Action"
git push origin gh-pages
git push origin gh-pages

0 comments on commit 135162b

Please sign in to comment.