travis_push_doc.sh 566 B

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