Skip to content

Commit 11af2d7

Browse files
authored
ci: remove copy of hidden files docs (#6256)
ci: remove copy of hidden files
1 parent 12dda3d commit 11af2d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ jobs:
3636
mv `ls -1 ./ | grep -v docs-new` ./docs-new
3737
3838
# fetch the current site, remove the old docs dir and make current the new one
39-
git clone -b main https://github.com/GrapesJS/website.git tmp && mv tmp/* tmp/.* . && rm -rf tmp
39+
git clone -b main https://github.com/GrapesJS/website.git tmp
40+
mv tmp/[^.]* . # Move all non-hidden files
41+
mv tmp/.[^.]* . 2>/dev/null || true # Move hidden files, ignore errors if none exist
42+
rm -rf tmp
4043
rm -fR public/docs
4144
mv ./docs-new ./public/docs
4245

0 commit comments

Comments
 (0)