Add all files when deploy

This commit is contained in:
Khue Doan 2021-08-30 14:18:54 +07:00
parent b3b579d8cc
commit 64a6df92e7

View File

@ -19,6 +19,7 @@ deploy:
git worktree add /tmp/book gh-pages git worktree add /tmp/book gh-pages
cp -rp book/* /tmp/book/ cp -rp book/* /tmp/book/
cd /tmp/book \ cd /tmp/book \
&& git commit --all --message "Updates" || echo "No changes to commit" \ && git add . \
&& git commit --message "Updates" || echo "No changes to commit" \
&& git push && git push
git worktree remove /tmp/book git worktree remove /tmp/book