Skip to content

Commit

Permalink
Update how-gatsby-works-with-github-pages.md
Browse files Browse the repository at this point in the history
Clarified that the deploy command should be run in the main branch for default setup.
  • Loading branch information
dianacheung authored Mar 25, 2024
1 parent 5723972 commit 0659209
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Then add a `deploy` script to `package.json` in your repository's codebase:
}
```

When you run `npm run deploy` all contents of the `public` folder will be moved to your repository's `gh-pages` branch. Make sure that your repository's settings has the `gh-pages` branch set as the source to deploy from.
When you run `npm run deploy` in your `main` branch all contents of the `public` folder will be moved to your repository's `gh-pages` branch. Make sure that your repository's settings has the `gh-pages` branch set as the source to deploy from.

**Note**: To select `main` or `gh-pages` as your publishing source, you must have the branch present in your repository. If you don't have a `main` or `gh-pages` branch, you can create them and then return to source settings to change your publishing source.

Expand Down

0 comments on commit 0659209

Please sign in to comment.