11#! /bin/bash
22set -ev
3- if [ " $TRAVIS_JDK_VERSION " == " oraclejdk8" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " rework/mk_09/2017 " ]; then
3+ if [ " $TRAVIS_JDK_VERSION " == " oraclejdk8" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " release_2.0 " ]; then
44
55if [[ -z " $GH_TOKEN " ]]; then
66echo -e " GH_TOKEN is not set"
@@ -24,23 +24,23 @@ git clone --quiet --branch=gh-pages https://
[email protected] /GwtMaterialDesi
2424cd gh-pages
2525
2626# remove the GwtMaterialDemo directories from git.
27- if [[ -d ./rework /gwtmaterialdemo ]]; then
28- git rm -rf ./rework /gwtmaterialdemo
27+ if [[ -d ./snapshot /gwtmaterialdemo ]]; then
28+ git rm -rf ./snapshot /gwtmaterialdemo
2929fi
30- if [[ -f ./rework /index.html ]]; then
31- git rm -rf ./rework /index.html
30+ if [[ -f ./snapshot /index.html ]]; then
31+ git rm -rf ./snapshot /index.html
3232fi
33- if [[ -d ./rework /META-INF ]]; then
34- git rm -rf ./rework /META-INF
33+ if [[ -d ./snapshot /META-INF ]]; then
34+ git rm -rf ./snapshot /META-INF
3535fi
36- if [[ -d ./rework /snapshot/WEB-INF ]]; then
37- git rm -rf ./rework /snapshot/WEB-INF
36+ if [[ -d ./snapshot /snapshot/WEB-INF ]]; then
37+ git rm -rf ./snapshot /snapshot/WEB-INF
3838fi
3939
4040# copy the new GwtMaterialDemo the snapshot dir.
41- unzip -u $TRAVIS_BUILD_DIR /target/gwt-material-demo-* .war -d ./rework /
42- rm -rf ./rework /META-INF
43- rm -rf ./rework /WEB-INF
41+ unzip -u $TRAVIS_BUILD_DIR /target/gwt-material-demo-* .war -d ./snapshot /
42+ rm -rf ./snapshot /META-INF
43+ rm -rf ./snapshot /WEB-INF
4444
4545git add -f .
4646git commit -m " Auto-push demo to gh-pages successful. (Travis build: $TRAVIS_BUILD_NUMBER )"
0 commit comments