Skip to content

Commit 7cf7f1a

Browse files
committed
Update docs on the develop branch
1 parent 296e65f commit 7cf7f1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ script:
1515
- bundle exec rake ci:build
1616
- make -B carthage
1717
- make -B docs
18+
after_script:
19+
- sh scripts/update-docs.sh
1820
notifications:
1921
email: false
2022
slack:

scripts/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git --no-pager diff --stat
1717
git add .
1818
git commit -m "[CI] Update documentation at $(date +'%Y-%m-%d %H:%M:%S %z')"
1919

20-
if [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
20+
if [ "${TRAVIS_BRANCH}" = "develop" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
2121
echo "Updating gh-pages..."
2222
git remote add upstream "https://${DANGER_GITHUB_API_TOKEN}@github.com/polydice/ICInputAccessory.git"
2323
git push --quiet upstream HEAD:gh-pages

0 commit comments

Comments
 (0)