Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fse = require('fs-extra');
- const ghpages = require('gh-pages');
- const path = require('path');
- fse.copy('./CNAME', './dist/CNAME', (error) => {
- if (error) {
- console.log(error);
- } else {
- deployApp();
- }
- });
- function deployApp() {
- ghpages.publish(path.join(__dirname, 'dist'), {
- branch: 'master'
- }, () => {
- console.log('deploy complete');
- });
- }
Add Comment
Please, Sign In to add comment