travis_push_doc.sh 651 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -ev
  3. git clone --depth=5 -b gh-pages https://$GITAUTH@github.com/open62541/open62541-www
  4. cd open62541-www
  5. rm -r -f ./doc/current/* || true # ignore result
  6. mkdir ./doc/current
  7. cp -r ../../doc/* ./doc/current/
  8. cp -r ../../doc_latex/open62541.pdf ./doc/open62541-current.pdf
  9. git add -A ./doc
  10. git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  11. git config --global user.name "Open62541 travis-ci"
  12. git config --global push.default simple
  13. git commit -am "updated generated documentation on webpage by travis-ci [ci skip]"
  14. git push https://$GITAUTH@github.com/open62541/open62541-www
  15. cd .. && rm -rf open62541-www