Fixed publish
This commit is contained in:
parent
340f984c8f
commit
be8735e0d3
|
|
@ -1,5 +1,5 @@
|
||||||
/*jshint esversion: 6 */
|
/*jshint esversion: 6 */
|
||||||
const ghpages = require('gh-pages');
|
const ghPages = require('gh-pages');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs-extra')
|
const fs = require('fs-extra')
|
||||||
|
|
||||||
|
|
@ -47,13 +47,12 @@
|
||||||
return copyVersion(2)
|
return copyVersion(2)
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
ghPages.publish('public', function (err) {
|
||||||
// ghpages.publish('public', function (err) {
|
if (err)
|
||||||
// if (err)
|
console.log(err);
|
||||||
// console.log(err);
|
else
|
||||||
// else
|
console.log('Built and deployed successfully');
|
||||||
// console.log('Built and deployed successfully');
|
});
|
||||||
// });
|
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue