Permalink
Browse files

Make sure that _deploy is there as a copy of gh-pages

  • Loading branch information...
1 parent f0cb6b8 commit c06ac3f3d2a351b84c5aa749bc1614593a08ae82 @tswicegood committed Dec 21, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/deploy.sh
View
@@ -14,7 +14,8 @@ rm deploy_key
# Configure Git repo correctly
git config --global user.email "${CI_USER_EMAIL}"
git config --global user.name "${CI_USER_NAME}"
-git remote set-url origin git@github.com:${GITHUB_USER}/${GITHUB_REPO}.git
-git fetch origin
+
+# Grab a copy of gh-pages
+git clone --depth=2 --branch=gh-pages git@github.com:${GITHUB_USER}/${GITHUB_REPO}.git _deploy
bundle exec rake deploy

0 comments on commit c06ac3f

Please sign in to comment.