Skip to content

Commit 3090d63

Browse files
committed
Update README and deploy script
1 parent 98c9117 commit 3090d63

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
## Deploying The Site
1616

17+
Run `yarn deploy` to the deploy the site. In the event that this command doesn't work, you can just run each step individually.
18+
19+
Steps:
20+
1721
1. Run `yarn build` to build the app.
1822
2. Run `yarn export` to build the static files.
1923
3. Run `touch out/.nojekyll` to tell GitHub Pages not to use Jekyll.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "next",
99
"build": "next build",
1010
"export": "next export",
11-
"deploy": "next build && next export && touch out/.nojekyll && echo \"sbcs.io\" > out/CNAME &&git add out/ && git commit -m \"Deploy gh-pages\"",
11+
"deploy": "next build && next export && touch out/.nojekyll && echo \"sbcs.io\" > out/CNAME && git add out/ && git commit -m \"Deploy gh-pages\" && git subtree push --prefix out origin gh-pages",
1212
"push": "git subtree push --prefix out origin gh-pages",
1313
"start": "next start",
1414
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && rm -rf .next/ && npm install && npm run dev"

0 commit comments

Comments
 (0)