File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const path = require("path")
9
9
const fs = require ( "fs" ) . promises
10
10
const parseChangelog = require ( 'changelog-parser' )
11
11
const { Octokit } = require ( "@octokit/rest" ) ;
12
+ const ghpages = require ( "gh-pages" )
12
13
13
14
const info = chalk . blueBright
14
15
const warn = chalk . yellow
@@ -43,13 +44,13 @@ const shellExecInDemoProject = (command) => {
43
44
)
44
45
}
45
46
46
- const ghreleasePromise = ( options ) => {
47
+ const ghpagesPublishPromise = ( path , config ) => {
47
48
return new Promise ( ( resolve , reject ) => {
48
- ghrelease ( options , ( err , result ) => {
49
+ ghpages . publish ( path , config , ( err ) => {
49
50
if ( err ) {
50
51
reject ( err )
51
52
} else {
52
- resolve ( result )
53
+ resolve ( )
53
54
}
54
55
} )
55
56
} )
@@ -219,7 +220,7 @@ const publishHandler = async (argv) => {
219
220
}
220
221
221
222
// Publish the demo on Github Pages
222
- await ghpagesPublisPromise ( resolve ( "demo" , "output" ) )
223
+ await ghpagesPublishPromise ( resolve ( "demo" , "output" ) )
223
224
224
225
}
225
226
You can’t perform that action at this time.
0 commit comments