Browse Source

Updated `make gh-pages`

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
aaa48c13a1
  1. 0
      .nojekyll
  2. 18
      Makefile

0
.nojekyll

18
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:

Loading…
Cancel
Save