1 |
|
2 |
|
3 | generate_jsdocs() {
|
4 | npm run docs
|
5 | }
|
6 |
|
7 | move_docs() {
|
8 | if [ -d "docs" ]
|
9 | then
|
10 | rm -rf docs
|
11 | fi
|
12 | mv jsdocs docs
|
13 | }
|
14 |
|
15 | commit() {
|
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 |
|
22 | generate_jsdocs
|
23 | move_docs
|
24 | commit |
\ | No newline at end of file |