-
-
Save bergpb/958084f5114aa4d9d0d754d7af14d0a5 to your computer and use it in GitHub Desktop.
Deploy gh-pages ionic pwa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git branch -D gh-pages | |
git push origin --delete gh-pages | |
git checkout -b gh-pages | |
ionic build --prod | |
find . -type d ! -path './www*' ! -path './.git*' ! -path '.' | xargs rm -rf | |
rm -r *.* | |
mv www/* . | |
rm -rf www | |
git add . | |
git commit -m "Publishing to github pages" | |
git push origin gh-pages | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment