From eab2ff2103fbb58c8de44a568f625eaf72abf522 Mon Sep 17 00:00:00 2001 From: danstarns Date: Wed, 23 Oct 2024 17:04:33 +0100 Subject: [PATCH] ci: remove copy of hidden files --- .github/workflows/publish-docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 5e7a1e640..d4b84062b 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -36,7 +36,10 @@ jobs: mv `ls -1 ./ | grep -v docs-new` ./docs-new # fetch the current site, remove the old docs dir and make current the new one - git clone -b main https://github.com/GrapesJS/website.git tmp && mv tmp/* tmp/.* . && rm -rf tmp + git clone -b main https://github.com/GrapesJS/website.git tmp + mv tmp/[^.]* . # Move all non-hidden files + mv tmp/.[^.]* . 2>/dev/null || true # Move hidden files, ignore errors if none exist + rm -rf tmp rm -fR public/docs mv ./docs-new ./public/docs