File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,22 @@ async function copyFiles() {
12
12
archivedData [ version ] = Date . now ( ) ;
13
13
await fs . writeJson ( archiveMetaFile , archivedData ) ;
14
14
console . log ( 'successfully archived!' ) ;
15
+ ghpages . publish (
16
+ './dist/toppy-app' ,
17
+ {
18
+ repo : 'https://' + process . env . GH_TOKEN + '@github.com/lokesh-coder/toppy.git'
19
+ } ,
20
+ function ( err ) {
21
+ if ( err ) {
22
+ console . log ( 'Error occured during gh pages push' , err ) ;
23
+ } else {
24
+ console . log ( 'Pushed to ghpages!' ) ;
25
+ }
26
+ }
27
+ ) ;
15
28
} catch ( err ) {
16
29
console . error ( err ) ;
17
30
}
18
31
}
19
32
20
33
copyFiles ( ) ;
21
-
22
- ghpages . publish (
23
- './dist/toppy-app' ,
24
- {
25
- repo : 'https://' + process . env . GH_TOKEN + '@github.com/lokesh-coder/toppy.git' ,
26
- silent : true ,
27
- add : true
28
- } ,
29
- function ( err ) {
30
- console . error ( 'Error occured during gh pages push' , err ) ;
31
- }
32
- ) ;
You can’t perform that action at this time.
0 commit comments