Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- git branch -D gh-pages
- git push origin --delete gh-pages
- git checkout -b gh-pages
- ionic build --prod
- find . -type d ! -name 'www' ! -name '.git' ! -name '.' ! -name '..' -delete
- mv www/* .
- rm -rf www
- git add .
- git commit -m "Publishing to github pages"
- git push origin gh-pages
- git checkout master
Add Comment
Please, Sign In to add comment