Skip to content

Instantly share code, notes, and snippets.

@shavidzet
Last active August 12, 2018 01:36
Show Gist options
  • Save shavidzet/98af545970d7d75eccbcd161eb67a15d to your computer and use it in GitHub Desktop.
Save shavidzet/98af545970d7d75eccbcd161eb67a15d to your computer and use it in GitHub Desktop.
Host front-end code on github pages trough Buddy CI/CD

Host front-end code on github pages trough Buddy CI/CD

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