Guest User

Untitled

a guest
Feb 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. const fse = require('fs-extra');
  2. const ghpages = require('gh-pages');
  3. const path = require('path');
  4.  
  5. fse.copy('./CNAME', './dist/CNAME', (error) => {
  6. if (error) {
  7. console.log(error);
  8. } else {
  9. deployApp();
  10. }
  11. });
  12.  
  13. function deployApp() {
  14. ghpages.publish(path.join(__dirname, 'dist'), {
  15. branch: 'master'
  16. }, () => {
  17. console.log('deploy complete');
  18. });
  19. }
Add Comment
Please, Sign In to add comment