.deployGH_doc.sh 657 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. #
  3. # This script is run by travis-ci and pushes generated docs and single-source
  4. # distributions to open62541-www
  5. #
  6. git clone --depth=5 -b gh-pages https://$GITAUTH@github.com/open62541/open62541-www
  7. cd open62541-www
  8. git rm -r -f ./doc/current/*
  9. cp -r ../doc/* ./doc/current/
  10. git add -A ./doc/current
  11. git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  12. git config --global user.name "Open62541 travis-ci"
  13. git config --global push.default simple
  14. git commit -am "updated generated documentation on webpage by travis-ci [ci skip]"
  15. git push https://$GITAUTH@github.com/open62541/open62541-www
  16. cd ..
  17. rm -rf open62541-www