File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1313stages :
1414 - Tests
1515 - Examples
16+ - Documentation
1617
1718jobs :
1819 include :
@@ -125,3 +126,24 @@ jobs:
125126 -configuration Debug
126127 ONLY_ACTIVE_ARCH=YES
127128 test | bundle exec xcpretty
129+
130+ - stage : Documentation
131+ name : Generate Documentation
132+ language : objective-c
133+ git.depth : false
134+ if : branch = master
135+ cache :
136+ bundler : true
137+ install :
138+ - bundle install
139+ script :
140+ - git remote update
141+ - git fetch origin gh-pages:gh-pages --depth 1
142+ - git checkout gh-pages
143+ - bundle exec jazzy
144+ - git add docs
145+ - git config user.name "Travis"
146+ -
git config user.email "[email protected] " 147+ - git commit -m "Updated docs for $TRAVIS_TAG"
148+ - git remote add secure-origin https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git
149+ - git push secure-origin gh-pages
You can’t perform that action at this time.
0 commit comments