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:
16
gh-pages.sh
Executable file
16
gh-pages.sh
Executable 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!"
|
||||
Reference in New Issue
Block a user