Created
June 7, 2020 01:39
-
-
Save mykeels/88e42d43b19b8781c73f16aadd03837f to your computer and use it in GitHub Desktop.
Will deploy to gh-pages branch from master
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
git branch -f gh-pages | |
git checkout gh-pages | |
git reset --hard origin/master | |
yarn build | |
cp -r build/* . | |
git add -A . | |
git commit -a -m 'push to gh-pages' | |
git push origin gh-pages --force | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment