Skip to content

Commit

Permalink
fix: publish gh-pages with achived versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-coder committed Nov 1, 2018
1 parent f560389 commit 19a34c2
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions bin/gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ async function copyFiles() {
archivedData[version] = Date.now();
await fs.writeJson(archiveMetaFile, archivedData);
console.log('successfully archived!');
ghpages.publish(
'./dist/toppy-app',
{
repo: 'https://' + process.env.GH_TOKEN + '@github.com/lokesh-coder/toppy.git'
},
function(err) {
if (err) {
console.log('Error occured during gh pages push', err);
} else {
console.log('Pushed to ghpages!');
}
}
);
} catch (err) {
console.error(err);
}
}

copyFiles();

ghpages.publish(
'./dist/toppy-app',
{
repo: 'https://' + process.env.GH_TOKEN + '@github.com/lokesh-coder/toppy.git',
silent: true,
add: true
},
function(err) {
console.error('Error occured during gh pages push', err);
}
);

0 comments on commit 19a34c2

Please sign in to comment.