aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gh-pages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gh-pages.sh')
-rwxr-xr-xscripts/gh-pages.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gh-pages.sh b/scripts/gh-pages.sh
index a091820..02b5d08 100755
--- a/scripts/gh-pages.sh
+++ b/scripts/gh-pages.sh
@@ -1,9 +1,11 @@
1#!/bin/bash 1#!/bin/bash
2 2
3origin_branch=`git branch --show-current`
4
3git checkout gh-pages -- .gitignore index.html && \ 5git checkout gh-pages -- .gitignore index.html && \
4npm run build && npm run docs && \ 6npm run build && npm run docs && \
5git branch --force gh-pages HEAD && \ 7git branch --force gh-pages HEAD && \
6git checkout gh-pages && \ 8git checkout gh-pages && \
7git add --all && git commit -m gh-pages && \ 9git add --all && git commit -m gh-pages && \
8git push -f && 10git push -f &&
9git checkout HEAD^ 11git checkout $origin_branch