Skip to content

Commit 25de9b6

Browse files
committed
use after_success instead of deploy; otherwise Jekyll disappears
1 parent d8e62fc commit 25de9b6

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.travis.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ install:
1717
script:
1818
- sbt makeMicrosite
1919

20-
deploy:
21-
- provider: script
22-
script: ./deploy-microsite.sh
23-
skip_cleanup: true
24-
on:
25-
branch: typelevel-readme
20+
after_success:
21+
- ./deploy-microsite.sh
2622

2723
cache:
2824
directories:

deploy-microsite.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
set -e
44

5-
GIT_EMAIL="[email protected]"
6-
GIT_NAME="Typelevel Bot"
5+
if [ "$TRAVIS_BRANCH" = "typelevel-readme" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
6+
GIT_EMAIL="[email protected]"
7+
GIT_NAME="Typelevel Bot"
78

8-
git config --global user.name "$GIT_NAME"
9-
git config --global user.email "$GIT_EMAIL"
9+
git config --global user.name "$GIT_NAME"
10+
git config --global user.email "$GIT_EMAIL"
11+
git config --global push.default simple
12+
13+
sbt publishMicrosite
14+
else
15+
echo "Skipping deployment!"
16+
fi
1017

11-
sbt publishMicrosite

0 commit comments

Comments
 (0)