UNPKG

422 Bapplication/x-shView Raw
1#!/bin/sh
2
3generate_jsdocs() {
4 npm run docs
5}
6
7move_docs() {
8 if [ -d "docs" ]
9 then
10 rm -rf docs
11 fi
12 mv jsdocs docs
13}
14
15commit() {
16 git checkout gh-pages
17 git add docs
18 git commit -m "Travis Build ${TRAVIS_BUILD_NUMBER}; Updated github pages"
19 git push "https://${ENV_GITHUB_USERNAME}:${ENV_GITHUB_PASSWORD}@github.com/dannyYassine/operationkit.git/"
20}
21
22generate_jsdocs
23move_docs
24commit
\No newline at end of file