1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

gh-pages script

This commit is contained in:
chomik
2018-02-26 16:07:17 +01:00
parent 7b91d8b28f
commit 8b87199fb5

16
gh-pages.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e # stop on error
echo "check out branch gh-pages ..."
git checkout -b gh-pages
echo "add dist folder"
git add -f dist
echo "commit changes"
git commit -m "deploy to gh-pages"
echo "push to remote gh-pages"
git push origin `git subtree split --prefix dist`:gh-pages --force
echo "checkout branch master"
git checkout master
echo "delete branch gh-pages"
git branch -D gh-pages
echo "All done!"