Update web site logic

This commit is contained in:
Ilkka Seppälä 2019-10-29 22:11:09 +02:00
parent c8a481bb77
commit a65a601835
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,6 @@ sudo: required
env:
global:
- GH_REF: github.com/iluwatar/java-design-patterns.git
- secure: "DCpazS3nkLnter3sguXEAS2fC/1ZWNfM+XLyif9MfNFxlZdpni2vCD/jA0Rdpga8puQWHNVLyAec+RPFH/2qSmJ1c1UTV5MaLv8tPqwUX0VFA+1I6XoSv6oX4ldHTBWHEWqQHkRFOLoil0h0edc0tTOWQwXF8U+DLAB+HkRb4gw="
services:
@ -24,7 +23,7 @@ script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then mvn clean verify sonar:sonar -Dsonar.projectKey=iluwatar_java-design-patterns -Dsonar.host.url=https://sonarcloud.io; fi'
after_success:
- bash update-ghpages.sh
- bash update-website.sh
notifications:
email:

View File

@ -24,8 +24,8 @@
# Clone gh-pages
git clone -b gh-pages "https://${GH_REF}" ghpagesclone
cd ghpagesclone
git clone https://github.com/iluwatar/java-design-patterns-web.git
cd java-design-patterns-web
# Init and update submodule to latest
git submodule update --init --recursive
@ -41,5 +41,5 @@ then
# it should be committed
git add .
git commit -m ":sparkles: :up: Automagic Update via Travis-CI"
git push --quiet "https://${GH_TOKEN}:x-oauth-basic@${GH_REF}" gh-pages > /dev/null 2>&1
git push --quiet "https://${GH_TOKEN}:x-oauth-basic@github.com/iluwatar/java-design-patterns-web.git" gh-pages > /dev/null 2>&1
fi