-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #962 from watson-developer-cloud/develop
Release 2.0.2
- Loading branch information
Showing
9 changed files
with
29 additions
and
13 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 |
---|---|---|
|
@@ -3,14 +3,17 @@ | |
|
||
set -e | ||
|
||
gem install jazzy --silent | ||
if [ "$is_travis" = "TRAVIS" ]; then | ||
gem install jazzy | ||
|
||
# Configure Travis to be able to push to the Github repo | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | ||
git remote rm origin | ||
git remote add origin https://watson-developer-cloud:${GH_TOKEN}@github.com/watson-developer-cloud/swift-sdk.git | ||
fi | ||
|
||
# Configure Travis to be able to push to the Github repo | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | ||
git remote rm origin | ||
git remote add origin https://watson-developer-cloud:${GH_TOKEN}@github.com/watson-developer-cloud/swift-sdk.git | ||
git fetch | ||
git checkout master | ||
latestVersion=$(git describe --abbrev=0 --tags) | ||
|
@@ -20,6 +23,8 @@ latestVersion=$(git describe --abbrev=0 --tags) | |
|
||
# Push newly-generated docs to the gh-pages branch | ||
git checkout --track origin/gh-pages | ||
# Delete old docs | ||
rm -rf css img js services | ||
cp -r gh-pages/* . | ||
rm -rf gh-pages/ | ||
git add . | ||
|
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
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
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
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