We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 466859f + 28cf7ae commit d9b6731Copy full SHA for d9b6731
deploy.sh
@@ -22,8 +22,9 @@ git push --tag --force origin-pages || exit 1
22
# Git clone
23
git clone -b $DEPLOY_BRANCH --single-branch "https://${GH_REPO}" $DEPLOY_FOLDER
24
25
-# Clean up files from last build(except .git)
26
-find ./$DEPLOY_FOLDER/* ./$DEPLOY_FOLDER/.* ! -path "./${DEPLOY_FOLDER}/.git/*" ! -name ".git" | xargs rm -rf
+# Clean up directorys / files from last build (except .git/*)
+find ./$DEPLOY_FOLDER -type d ! -path "*/.git*" ! -path "./$DEPLOY_FOLDER" | xargs rm -rf
27
+find ./$DEPLOY_FOLDER -type f ! -path "*/.git/*" | xargs rm -rf
28
29
# Copy built files
30
cp -R ./build/. ./$DEPLOY_FOLDER
0 commit comments