| Derick Montague | aae4312 | 2020-01-03 08:36:20 -0600 | [diff] [blame^] | 1 | #!/usr/bin/env sh |
| 2 | # This is the script to deploy documentation only | ||||
| 3 | |||||
| 4 | # abort on errors | ||||
| 5 | set -e | ||||
| 6 | |||||
| 7 | # build | ||||
| 8 | npm run docs:build | ||||
| 9 | |||||
| 10 | # navigate into the build output directory | ||||
| 11 | cd docs/.vuepress/dist | ||||
| 12 | |||||
| 13 | git init | ||||
| 14 | git add -A | ||||
| 15 | git commit -m 'deploy' | ||||
| 16 | |||||
| 17 | # push to gh-pages repo | ||||
| 18 | git push -f git@github.com:openbmc/webui-vue.git master:gh-pages | ||||
| 19 | cd - | ||||