File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,23 @@ if [[ "${TRAVIS_REPO_SLUG}" != "oracle/opengrok" ||
10
10
exit 0
11
11
fi
12
12
13
- echo -e " Publishing javadoc...\n"
13
+ BRANCH=" gh-pages"
14
+ echo -e " Publishing javadoc to $BRANCH ...\n"
14
15
15
16
./mvnw -DskipTests=true site
16
17
17
18
git config --global user.email
" [email protected] "
18
19
git config --global user.name " travis-ci"
19
- git clone --quiet --branch=gh-pages \
20
- https://${GH_PAGES_TOKEN} @github.com/oracle/opengrok gh-pages
20
+ git clone --quiet --branch=$BRANCH \
21
+ https://${GH_PAGES_TOKEN} @github.com/oracle/opengrok " $BRANCH "
21
22
22
- cd gh-pages
23
+ cd " $BRANCH "
23
24
if [[ -d ./javadoc ]]; then
24
25
git rm -rf ./javadoc
25
26
fi
26
27
cp -Rf ${TRAVIS_BUILD_DIR} /target/site/apidocs ./javadoc
27
28
git add -f ./javadoc
28
- git commit -m " Lastest javadoc auto-pushed to gh-pages "
29
- git push -fq origin gh-pages
29
+ git commit -m " Lastest javadoc auto-pushed to branch $BRANCH "
30
+ git push -fq origin " $BRANCH "
30
31
31
- echo -e " Published Javadoc to gh-pages .\n"
32
+ echo -e " Published Javadoc to branch $BRANCH .\n"
You can’t perform that action at this time.
0 commit comments