Merge pull request #4 from arifszn/arifszn-patch-1
Update deployment guide
This commit is contained in:
commit
31181711df
29
README.md
29
README.md
@ -383,26 +383,6 @@ Once you are done with your setup and have completed all steps above, you need t
|
|||||||
|
|
||||||
**1. Github Pages:**
|
**1. Github Pages:**
|
||||||
|
|
||||||
(BASIC)
|
|
||||||
- Open <code>package.json</code>, and change <code>homepage</code>'s value to <code>https://username.github.io/repoName</code>.
|
|
||||||
|
|
||||||
```js
|
|
||||||
// package.json
|
|
||||||
{
|
|
||||||
// ...
|
|
||||||
"homepage": "https://username.github.io/repoName",
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- Now commit to your main branch
|
|
||||||
- The CI/CD pipeline will publish your page at the gh-pages branch.
|
|
||||||
- Go to Settings -> Pages -> Source and change the branch to gh-pages
|
|
||||||
- You can see the link where it is published.
|
|
||||||
- Any time you commit a change to main branch the website will automatically update.
|
|
||||||
- If you see only <code>README</code> at <code>username.github.io/repoName</code>, be sure to change your GitHub Page's source to <code>gh-pages</code> branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).
|
|
||||||
|
|
||||||
(ADVANCED)
|
|
||||||
- You can take this a step further by creating a repository in your name.
|
|
||||||
- Rename your forked repository to <code>username.github.io</code> in github, where <code>username</code> is your GitHub username (or organization name).
|
- Rename your forked repository to <code>username.github.io</code> in github, where <code>username</code> is your GitHub username (or organization name).
|
||||||
- Open <code>package.json</code>, and change <code>homepage</code>'s value to <code>https://username.github.io</code>.
|
- Open <code>package.json</code>, and change <code>homepage</code>'s value to <code>https://username.github.io</code>.
|
||||||
|
|
||||||
@ -414,7 +394,14 @@ Once you are done with your setup and have completed all steps above, you need t
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- Your personal portfolio will be live at <code>username.github.io</code>. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages).
|
- Now commit to your main branch
|
||||||
|
- The CI/CD pipeline will publish your page at the gh-pages branch automatically.
|
||||||
|
- Go to your repo's Settings -> Pages -> Source and change the branch to gh-pages
|
||||||
|
- Your personal portfolio will be live at <code>username.github.io</code>.
|
||||||
|
- Any time you commit a change to main branch the website will automatically update.
|
||||||
|
|
||||||
|
|
||||||
|
Manual deployment is also available by running <code>npm run deploy</code>. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages). If you see only <code>README</code> at <code>username.github.io</code>, be sure to change your GitHub Page's source to <code>gh-pages</code> branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user