gh-pages-refresh.sh 337 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. exit 0
  3. # checkout latest
  4. git fetch
  5. git checkout gh-pages
  6. git pull
  7. git checkout --orphan gh-pages-temp
  8. # cleanup
  9. rm -rf node_modules
  10. rm -rf coverage
  11. rm -rf packages
  12. rm -rf test
  13. # add
  14. git add -A
  15. git commit -am "refresh history"
  16. # danger, force new
  17. git branch -D gh-pages
  18. git branch -m gh-pages
  19. git push -f origin gh-pages