File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,8 @@ install:
17
17
script :
18
18
- sbt makeMicrosite
19
19
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
26
22
27
23
cache :
28
24
directories :
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
-
6
- GIT_NAME=" Typelevel Bot"
5
+ if [ " $TRAVIS_BRANCH " = " typelevel-readme" -a " $TRAVIS_PULL_REQUEST " = " false" ]; then
6
+
7
+ GIT_NAME=" Typelevel Bot"
7
8
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
10
17
11
- sbt publishMicrosite
You can’t perform that action at this time.
0 commit comments