cmd 425 B

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