Skip to content

Commit

Permalink
Update deploy script example
Browse files Browse the repository at this point in the history
  • Loading branch information
tchartron committed Dec 5, 2021
1 parent 42f9e61 commit bfa42d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,6 +27,7 @@ git push origin main
# Go To Public folder
cd public

git checkout main
# Add changes to git.
git add .

Expand Down

0 comments on commit bfa42d2

Please sign in to comment.