From fb3e76c86d41d0072b32949c586ce33c821709dc Mon Sep 17 00:00:00 2001 From: leandrw Date: Sun, 21 Jan 2018 20:03:05 -0200 Subject: [PATCH] Added deploy task to gh-pages in Org pages Added the task to deploy to Github Pages in Organizations pages like organization.github.io --- docs/docs/deploy-gatsby.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docs/deploy-gatsby.md b/docs/docs/deploy-gatsby.md index a00256beed11f..71e19a82c0504 100644 --- a/docs/docs/deploy-gatsby.md +++ b/docs/docs/deploy-gatsby.md @@ -96,6 +96,12 @@ repository dedicated to files for the site. The sites must be published from the kept in a branch named `source` or something similar. We also don't need to prefix links like we do with project sites. +``` +"scripts": { + "deploy": "gatsby build && gh-pages -b master -d public", +} +``` + The repository for these sites requires a special name. See https://help.github.com/articles/user-organization-and-project-pages/ for documentation on naming your site's repository.