Skip to content

Commit

Permalink
Improve website publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
blikblum committed Apr 4, 2021
1 parent d0d7e64 commit d78a4f8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/publish_website.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
const ghpages = require('gh-pages');

const { argv } = process;

const message = argv.length > 2 ? argv[2] : undefined;

ghpages.publish(
'.',
{
src: ['index.html', 'docs/*.html', 'docs/guide.pdf', 'demo/out.pdf'],
add: true
src: [
'index.html',
'docs/*.html',
'docs/img/*.png',
'docs/guide.pdf',
'demo/out.pdf'
],
add: true,
message
},
function(err) {
if (err) {
Expand Down

0 comments on commit d78a4f8

Please sign in to comment.