cmd 394 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. git add .
  3. git commit -m 'Gitbook Auto Published'
  4. git push origin master
  5. cd _private
  6. git add .
  7. git commit -m 'Gitbook Auto Published'
  8. git push origin master
  9. cd ..
  10. rm -rf _book
  11. node_modules/.bin/gitbook build
  12. cd _book
  13. git init
  14. git add .
  15. git commit -m "Gitbook Auto Deployed"
  16. git remote add origin git@git.coding.net:willin/leader.js.cool.git
  17. git push -f origin master:coding-pages