Skip to content

Commit 0adc373

Browse files
authored
Merge pull request #375 from demee/patch-1
Add note about domain problem
2 parents fce5177 + db0b483 commit 0adc373

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,14 @@ The `gh-pages` module writes temporary files to a `node_modules/.cache/gh-pages`
388388

389389
If `gh-pages` fails, you may find that you need to manually clean up the cache directory. To remove the cache directory, run `node_modules/gh-pages/bin/gh-pages-clean` or remove `node_modules/.cache/gh-pages`.
390390

391+
### Deploying to github pages with custom domain
392+
393+
Modify the deployment line to your deploy script if you use custom domain. This will prevent the deployment from removing the domain settings in GitHub.
394+
395+
```
396+
echo 'your_cutom_domain.online' > ./build/CNAME && gh-pages -d build"
397+
```
398+
391399
### Deploying with GitHub Actions
392400

393401
In order to deploy with GitHub Actions, you will need to define a user and set the git repository for the process. See the example step below

0 commit comments

Comments
 (0)