forked from fabric8io/fabric8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-website.sh
executable file
·33 lines (27 loc) · 1003 Bytes
/
ci-website.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
echo ============================================================================
echo Deploying fabric8 website
echo ============================================================================
cd website && \
npm install -g gitbook-cli && \
npm install && \
mvn clean && \
mkdir -p target && \
cd target && \
git clone -b gh-pages [email protected]:fabric8io/fabric8.git sitegen && \
cd .. && \
mvn scalate:sitegen && \
mkdir -p target/sitegen/guide && \
mkdir -p ../docs/_book && \
gitbook install ../docs && \
gitbook build ../docs && \
echo "copying generated gitbook"
cp -rv ../docs/_book/* target/sitegen/guide && \
cd target/sitegen && \
git add * guide/* && \
git commit -m "generated website" && \
git push origin gh-pages
#gitbook install ../docs --output=target/sitegen/guide && \
echo ============================================================================
echo Deployed fabric8 website
echo ============================================================================