diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gh-pages.sh | 4 |
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 | ||
| 3 | origin_branch=`git branch --show-current` | ||
| 4 | |||
| 3 | git checkout gh-pages -- .gitignore index.html && \ | 5 | git checkout gh-pages -- .gitignore index.html && \ |
| 4 | npm run build && npm run docs && \ | 6 | npm run build && npm run docs && \ |
| 5 | git branch --force gh-pages HEAD && \ | 7 | git branch --force gh-pages HEAD && \ |
| 6 | git checkout gh-pages && \ | 8 | git checkout gh-pages && \ |
| 7 | git add --all && git commit -m gh-pages && \ | 9 | git add --all && git commit -m gh-pages && \ |
| 8 | git push -f && | 10 | git push -f && |
| 9 | git checkout HEAD^ | 11 | git checkout $origin_branch |