mirror of
https://github.com/tchartron/blow
synced 2024-11-21 20:03:14 +00:00
Update deploy script example
This commit is contained in:
parent
42f9e61d68
commit
bfa42d26b8
1 changed files with 3 additions and 1 deletions
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Reference in a new issue