-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push travis to main demo release showcase.
- Loading branch information
1 parent
27eb77c
commit 07ce83f
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,23 +24,23 @@ git clone --quiet --branch=gh-pages https://[email protected]/GwtMaterialDesi | |
cd gh-pages | ||
|
||
# remove the GwtMaterialDemo directories from git. | ||
if [[ -d ./snapshot/gwtmaterialdemo ]]; then | ||
git rm -rf ./snapshot/gwtmaterialdemo | ||
if [[ -d ./gwtmaterialdemo ]]; then | ||
git rm -rf ./gwtmaterialdemo | ||
fi | ||
if [[ -f ./snapshot/index.html ]]; then | ||
git rm -rf ./snapshot/index.html | ||
if [[ -f ./index.html ]]; then | ||
git rm -rf ./index.html | ||
fi | ||
if [[ -d ./snapshot/META-INF ]]; then | ||
git rm -rf ./snapshot/META-INF | ||
if [[ -d ./META-INF ]]; then | ||
git rm -rf ./META-INF | ||
fi | ||
if [[ -d ./snapshot/WEB-INF ]]; then | ||
git rm -rf ./snapshot/WEB-INF | ||
if [[ -d ./WEB-INF ]]; then | ||
git rm -rf ./WEB-INF | ||
fi | ||
|
||
# copy the new GwtMaterialDemo the snapshot dir. | ||
unzip -u $TRAVIS_BUILD_DIR/target/gwt-material-demo-*.war -d ./snapshot/ | ||
rm -rf ./snapshot/META-INF | ||
rm -rf ./snapshot/WEB-INF | ||
unzip -u $TRAVIS_BUILD_DIR/target/gwt-material-demo-*.war -d ./ | ||
rm -rf ./META-INF | ||
rm -rf ./WEB-INF | ||
|
||
git add -f . | ||
git commit -m "Auto-push demo to gh-pages successful. (Travis build: $TRAVIS_BUILD_NUMBER)" | ||
|