This repository is not intended to be used as a Gatsby theme.
Instead, it serves as a boilerplate specifically designed for deploying Gatsby SSG sites to GitHub Pages (github.io).
-
Clone this repo
# clone this repo git clone https://github.com/sawaYch/sawaYch.github.io.git gatsby-site-boilerplate
-
Restore dependencies
Navigate into your new site’s directory, prepare to develop locally.
cd gatsby-site-boilerplate/ npm ci
-
Start developing
Start it up.
npm start
-
Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit
src/pages/index.tsx
to see your site update in real-time!
This site are design to use SSG (Static Site Generation) and deploy to github.io page.
By default, this repo use:
develop
branch storing site codebasemaster
branch for the source hosting of Gatsby SSG bundled result.
Deploy this site using npm script or github action.
-
Npm
Please config git credential and the remote upstream first.
Then run this command to deploy:
npm run deploy
-
Github Action
Checkout the yaml file
.github/workflows/deploy.yml
.It is a manually triggered action.
You will need an github access token of your repo, with repo write permission.