Update deploy script example

This commit is contained in:
Thomas Chartron 2021-12-05 22:17:52 +01:00
parent 42f9e61d68
commit bfa42d26b8

View file

@ -7,7 +7,8 @@ if [ -d "public" ]
then
echo -e "\033[0;32mRemoving public folder except .git and README.md and CNAME \033[0m\n"
cd public
find . -not -name '.git' -not -name 'README.md' -not -name 'CNAME' -delete
# find . -not -name '.git' -not -name 'README.md' -not -name 'CNAME' -delete
find . -not -name '.git' -not -name 'README.md' -not -name 'CNAME' -not -name '.DS_Store' -not -name '.' -not -name '..' -exec rm -rf -- {} +
cd ..
fi
@ -26,6 +27,7 @@ git push origin main
# Go To Public folder
cd public
git checkout main
# Add changes to git.
git add .