Advertisement
Guest User

Untitled

a guest
May 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/bin/bash
  2. set -e\
  3.  
  4. git reset --soft master
  5. rm -rf source
  6. git checkout master -- source
  7. echo "<script>window.location = \"source/nodejs/adaptivecards-visualizer\"</script>" > index.html
  8. touch .nojekyll # enables publishing node_modules
  9.  
  10. pushd source/nodejs/adaptivecards
  11. npm install
  12. npm run build
  13. popd
  14.  
  15. pushd source/nodejs/adaptivecards-visualizer
  16. npm install adaptivecards@../adaptivecards
  17. npm install
  18. npm run build-all
  19. pushd node_modules
  20. git add -f adaptivecards/dist monaco-editor/min/vs monaco-editor/min-maps/vs ../dist
  21. popd
  22. popd
  23.  
  24. git add .
  25. git commit -m "gh-pages"
  26. git push -f
  27.  
  28. git checkout master
  29. rm -rf source
  30. git checkout master -- source
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement