Update web site logic
This commit is contained in:
parent
c8a481bb77
commit
a65a601835
@ -6,7 +6,6 @@ sudo: required
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GH_REF: github.com/iluwatar/java-design-patterns.git
|
|
||||||
- secure: "DCpazS3nkLnter3sguXEAS2fC/1ZWNfM+XLyif9MfNFxlZdpni2vCD/jA0Rdpga8puQWHNVLyAec+RPFH/2qSmJ1c1UTV5MaLv8tPqwUX0VFA+1I6XoSv6oX4ldHTBWHEWqQHkRFOLoil0h0edc0tTOWQwXF8U+DLAB+HkRb4gw="
|
- secure: "DCpazS3nkLnter3sguXEAS2fC/1ZWNfM+XLyif9MfNFxlZdpni2vCD/jA0Rdpga8puQWHNVLyAec+RPFH/2qSmJ1c1UTV5MaLv8tPqwUX0VFA+1I6XoSv6oX4ldHTBWHEWqQHkRFOLoil0h0edc0tTOWQwXF8U+DLAB+HkRb4gw="
|
||||||
|
|
||||||
services:
|
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'
|
- '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:
|
after_success:
|
||||||
- bash update-ghpages.sh
|
- bash update-website.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
|
|
||||||
# Clone gh-pages
|
# Clone gh-pages
|
||||||
git clone -b gh-pages "https://${GH_REF}" ghpagesclone
|
git clone https://github.com/iluwatar/java-design-patterns-web.git
|
||||||
cd ghpagesclone
|
cd java-design-patterns-web
|
||||||
|
|
||||||
# Init and update submodule to latest
|
# Init and update submodule to latest
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
@ -41,5 +41,5 @@ then
|
|||||||
# it should be committed
|
# it should be committed
|
||||||
git add .
|
git add .
|
||||||
git commit -m ":sparkles: :up: Automagic Update via Travis-CI"
|
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
|
fi
|
Loading…
x
Reference in New Issue
Block a user