Publish the given directory to a gh-pages branch.
import { githubPages } from '@zendeskgarden/scripts';
const args: {
dir: string;
disableJekyll?: boolean;
path?: string;
message?: string;
token?: string;
} = {
dir: __dirname
/* optional overrides */
};
(async () => {
const url = await githubPages(args);
console.log(url);
})();dirdirectory of web content to publish.no-jekylldisable Jekyll by adding a.nojekyllfile.pathoptional path to a git directory; defaults todir.messageoptional commit message.tokenoptional GitHub personal access token; defaults to the value provided bygithubToken.
garden github-pages [--no-jekyll] [--path <path>] [--message <message>] [--token <token>] <dir>To get debug output:
NODE_DEBUG=gh-pages garden github-pages