summaryrefslogtreecommitdiff
path: root/deploy-doc.sh
blob: c485b77ac26e48adbf8d078a29d432d68310622d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env sh
# This is the script to deploy documentation only

# abort on errors
set -e

# build
npm run docs:build

# navigate into the build output directory
cd docs/.vuepress/dist

git init
git add -A
git commit -m 'deploy'

# push to gh-pages repo
git push -f git@github.com:openbmc/webui-vue.git master:gh-pages
cd -