2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-02 14:54:06 +03:00
Files
2019-11-12 12:56:48 +08:00

23 lines
506 B
Bash

#!/bin/bash
directory=_site
branch=gh-pages
echo -e "\033[0;32mDeleting old content...\033[0m"
rm -rf $directory
echo -e "\033[0;32mChecking out $branch....\033[0m"
git worktree add $directory $branch
echo -e "\033[0;32mGenerating site...\033[0m"
npm run deploy:build
echo -e "\033[0;32mDeploying $branch branch...\033[0m"
cd $directory &&
git add --all &&
git commit -m "Deploy updates" &&
git push origin $branch
echo -e "\033[0;32mCleaning up...\033[0m"
cd ../
git worktree remove $directory