File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,21 @@ try {
5353
5454 if ( ghPagesExists ) {
5555 exec ( "git checkout gh-pages" ) ;
56+ exec ( "git add -A" ) ;
57+ exec ( "git stash" ) ;
5658 } else {
5759 throw new Error ( "No gh-pages branch found" ) ;
5860 }
5961
6062 console . log ( "Copying build artifacts..." ) ;
6163 cpSync ( tempDir , "." , { recursive : true } ) ;
6264 console . log ( "Committing changes..." ) ;
65+
6366 exec ( "git add -A" ) ;
6467 exec ( `git commit -m "Deploy from ${ currentBranch } @ ${ currentCommit } "` ) ;
6568
6669 console . log ( `Returning to ${ currentBranch } ...` ) ;
70+ exec ( `git stash pop` ) ;
6771 exec ( `git checkout ${ currentBranch } ` ) ;
6872 rmSync ( tempDir , { recursive : true , force : true } ) ;
6973 console . log ( "Deployment complete! gh-pages branch updated locally." ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " regular-layout" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.1.0 " ,
44 "description" : " A regular CSS `grid` container" ,
55 "keywords" : [],
66 "license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments