From aaa48c13a14096984e033cadd882ac8785ac6b3b Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Wed, 3 Sep 2014 01:30:28 +0400 Subject: [PATCH] Updated `make gh-pages` --- .nojekyll | 0 Makefile | 18 ++++-------------- 2 files changed, 4 insertions(+), 14 deletions(-) create mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile index 864fef2..2d8f5f8 100644 --- a/Makefile +++ b/Makefile @@ -27,21 +27,11 @@ test: lint gh-pages: - @if test -z ${REMOTE_REPO} ; then \ - echo 'Remote repo URL not found' >&2 ; \ - exit 128 ; \ + if [ "git branch --list gh-pages" ]; then \ + git branch -D gh-pages ; \ fi - mkdir ${TMP_PATH} - cp -r demo/* ${TMP_PATH} - touch ${TMP_PATH}/.nojekyll - cd ${TMP_PATH} && \ - git init && \ - git add . && \ - git commit -q -m 'Updated browserified demo' - cd ${TMP_PATH} && \ - git remote add remote ${REMOTE_REPO} && \ - git push --force remote +master:gh-pages - rm -rf ${TMP_PATH} + git branch gh-pages + git push origin gh-pages -f publish: