Skip to content

Commit

Permalink
chore: add default GitHub repository value in doc publish script (#102)
Browse files Browse the repository at this point in the history
malept authored and MarshallOfSound committed Jun 20, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 38c53d1 commit d5b9354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/publish-docs.js
Original file line number Diff line number Diff line change
@@ -4,11 +4,12 @@ const ghPages = require('gh-pages');
const path = require('path');

const docsDir = path.resolve(__dirname, '..', 'docs');
const repository = process.env.GITHUB_REPOSITORY || '@electron/get';

ghPages.publish(
docsDir,
{
repo: `https://${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`,
repo: `https://${process.env.GITHUB_TOKEN}@github.com/${repository}.git`,
silent: true,
},
err => {

0 comments on commit d5b9354

Please sign in to comment.