Skip to content

Commit

Permalink
Remove obsolete deploy script specific to user sites
Browse files Browse the repository at this point in the history
  • Loading branch information
gitname authored Apr 2, 2022
1 parent 34eb9b0 commit e7d4bf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ At this point, the React app's `package.json` file includes a property named `ho
$ vi package.json
```
2. Add a `predeploy` property and a `deploy` property\* to the `scripts` object:
2. Add a `predeploy` property and a `deploy` property to the `scripts` object:
```diff
"scripts": {
Expand All @@ -142,8 +142,6 @@ At this point, the React app's `package.json` file includes a property named `ho
"build": "react-scripts build",
```
> \* For a [project site](https://pages.github.com/#project-site), that's the `deploy` script. For a [user site](https://pages.github.com/#user-site), the `deploy` script is: `gh-pages -b master -d build`. You can read more about the `deploy` script in the ["GitHub Pages" section](https://create-react-app.dev/docs/deployment/#github-pages) of the `create-react-app` documentation.
At this point, the React app's `package.json` file includes deployment scripts.
### 6. Add a "remote" that points to the GitHub repository
Expand Down Expand Up @@ -210,6 +208,7 @@ In this step, I'll show you how you can store the source code of the React app o
# References
1. [The official `create-react-app` deployment guide](https://create-react-app.dev/docs/deployment/#github-pages)
2. [GitHub blog: Build and deploy GitHub Pages from any branch](https://github.blog/changelog/2020-09-03-build-and-deploy-github-pages-from-any-branch/)
# Notes
Expand Down

0 comments on commit e7d4bf6

Please sign in to comment.