forked from vavr-io/vavr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf4dcdf
commit d6a9089
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [ "$TRAVIS_REPO_SLUG" == "javaslang/javaslang" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then | ||
|
||
echo -e "Publishing javadoc...\n" | ||
|
||
cp -R target/site/apidocs $HOME/javadoc-latest | ||
|
||
cd $HOME | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "travis-ci" | ||
git clone https://${GH_TOKEN}@github.com/javaslang/javaslang.github.io | ||
|
||
cd javaslang.github.io | ||
git rm -rf ./javadoc/latest | ||
cp -Rf $HOME/javadoc-latest ./javadoc/latest | ||
git add -f . | ||
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" | ||
git push origin master | ||
|
||
echo -e "Published Javadoc to gh-pages.\n" | ||
|
||
fi |
File renamed without changes.