This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
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
e57082d
commit 726f4b8
Showing
2 changed files
with
45 additions
and
16 deletions.
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" == "iotaledger/iota.lib.java" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | ||
|
||
echo -e "Publishing javadoc...\n" | ||
|
||
cp -R "/home/travis/build/iotaledger/iota.lib.java/target/apidocs/" $HOME/javadoc-latest | ||
|
||
cd $HOME | ||
git config --global user.email "travis@travis-ci.org" | ||
git config --global user.name "travis-ci" | ||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/iotaledger/iota.lib.java gh-pages > /dev/null | ||
|
||
cd gh-pages | ||
git rm -rf ./javadoc | ||
cp -Rf $HOME/javadoc-latest ./javadoc | ||
git add -f . | ||
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" | ||
git push -fq origin gh-pages > /dev/null | ||
|
||
echo -e "Published Javadoc to gh-pages.\n" | ||
|
||
fi |