Skip to content

Commit a65a601

Browse files
committed
Update web site logic
1 parent c8a481b commit a65a601

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ sudo: required
66

77
env:
88
global:
9-
- GH_REF: github.com/iluwatar/java-design-patterns.git
109
- secure: "DCpazS3nkLnter3sguXEAS2fC/1ZWNfM+XLyif9MfNFxlZdpni2vCD/jA0Rdpga8puQWHNVLyAec+RPFH/2qSmJ1c1UTV5MaLv8tPqwUX0VFA+1I6XoSv6oX4ldHTBWHEWqQHkRFOLoil0h0edc0tTOWQwXF8U+DLAB+HkRb4gw="
1110

1211
services:
@@ -24,7 +23,7 @@ script:
2423
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then mvn clean verify sonar:sonar -Dsonar.projectKey=iluwatar_java-design-patterns -Dsonar.host.url=https://sonarcloud.io; fi'
2524

2625
after_success:
27-
- bash update-ghpages.sh
26+
- bash update-website.sh
2827

2928
notifications:
3029
email:

update-ghpages.sh renamed to update-website.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525

2626
# Clone gh-pages
27-
git clone -b gh-pages "https://${GH_REF}" ghpagesclone
28-
cd ghpagesclone
27+
git clone https://github.com/iluwatar/java-design-patterns-web.git
28+
cd java-design-patterns-web
2929

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

0 commit comments

Comments
 (0)