-
Notifications
You must be signed in to change notification settings - Fork 52
/
ci-website.sh
executable file
·36 lines (29 loc) · 1.12 KB
/
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
33
34
35
#!/bin/bash
### this script is used by cicle-ci to publish the website
### https://github.com/fabric8io/fabric8/blob/master/circle.yml#L33
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 -v 2.1.0 install ../docs && \
gitbook -v 2.1.0 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 ============================================================================