Skip to content

Instantly share code, notes, and snippets.

@nownabe
Last active June 27, 2017 15:01
Show Gist options
  • Save nownabe/c959d71cc500ad3287e1e9c982a3cad6 to your computer and use it in GitHub Desktop.
Save nownabe/c959d71cc500ad3287e1e9c982a3cad6 to your computer and use it in GitHub Desktop.
Deploy GitHub Pages
#!/bin/bash
set -eux
cd out # deploy directory
git init .
git config --local user.name USER
git config --local user.email [email protected]
git checkout -b gh-pages
git add --all
git commit -m ":rocket: Woooohhhoooo :rocket:"
git remote add origin https://USER:${GITHUB_TOKEN}@github.com/USER/REPO.git
git push -f -u origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment