publish_docs.sh 488 B

123456789101112131415
  1. #!/bin/bash
  2. grunt docs
  3. git clone git@github.com:opensheetmusicdisplay/opensheetmusicdisplay.github.io.git
  4. cd opensheetmusicdisplay.github.io
  5. git status
  6. rsync -a ../build/docs/* ./
  7. git status
  8. git add *
  9. git commit -m "Pushed auto-generated class documentation for $TRAVIS_TAG"
  10. git tag -a $TRAVIS_TAG -m "Class documentation for $TRAVIS_TAG"
  11. git push origin master --follow-tags
  12. echo "Deployed class documentation for $TRAVIS_TAG successfully."
  13. cd ..
  14. rm -rf opensheetmusicdisplay.github.io