diff --git a/deploy-github.sh b/deploy-github.sh index 09ac68e..f3e0947 100644 --- a/deploy-github.sh +++ b/deploy-github.sh @@ -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 .