Last active
August 12, 2018 01:36
-
-
Save shavidzet/98af545970d7d75eccbcd161eb67a15d to your computer and use it in GitHub Desktop.
Host front-end code on github pages trough Buddy CI/CD
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
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | |
git config --global user.email "$john@doe.com" | |
git config --global user.name "$John Doe" | |
cd $bundleDirectory | |
rm -rf .git | |
git init | |
git remote add deploy $repoURL | |
git checkout -b gh-pages | |
git add . | |
git commit -m 'Deployed' | |
git remote -v | |
git push deploy gh-pages -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment