Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
add script for publishing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Southwood authored and Scott Southwood committed Feb 1, 2015
1 parent 71c7bee commit d8c76a4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions update-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# generate docs
gradle docs

# save local.properties
git add local.properties -f
git stash

# add docs to version control
git add applicationinsights-android/build/docs/javadoc -f
git stash

# clear old docs
git checkout gh-pages
git clean -xdf
git rm -rf .

# add updated docs
git stash pop
mv applicationinsights-android/build/docs/javadoc/* ./
rm -rf applicationinsights-android
git add -A
git commit -m "updating docs via update-docs.sh"
git push

# restore local.properties
git checkout master
git stash pop
git reset HEAD local.properties

0 comments on commit d8c76a4

Please sign in to comment.