diff options
author | 2021-07-22 15:05:53 +0100 | |
---|---|---|
committer | 2021-07-22 07:05:53 -0700 | |
commit | 55195200fa1be168a66dbece2d075223e8ae3132 (patch) | |
tree | 4a12b9072653dc65ae9b09740f76a41a4db26807 | |
parent | 022382cd3f189be19db754bf14f6dc78acb3f0ed (diff) | |
download | astro-55195200fa1be168a66dbece2d075223e8ae3132.tar.gz astro-55195200fa1be168a66dbece2d075223e8ae3132.tar.zst astro-55195200fa1be168a66dbece2d075223e8ae3132.zip |
Update deploy.sh to include touch .nojekyll (#819)
* Update deploy.sh to include touch .nojekyll
* Update deploy.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
-rw-r--r-- | docs/src/pages/guides/deploy.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/src/pages/guides/deploy.md b/docs/src/pages/guides/deploy.md index 73b7942c1..451c4ae2a 100644 --- a/docs/src/pages/guides/deploy.md +++ b/docs/src/pages/guides/deploy.md @@ -31,8 +31,7 @@ By default, the build output will be placed at `dist/`. You may deploy this `dis ## GitHub Pages 1. Set the correct `buildOptions.site` in `astro.config.mjs`. -2. Run `touch public/.nojekyll` to create a `.nojekyll` file in `public/`. This [bypasses GitHub Page's default behavior](https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/) to ignore paths prefixed with `_`. -3. Inside your project, create `deploy.sh` with the following content (uncommenting the appropriate lines), and run it to deploy: +1. Inside your project, create `deploy.sh` with the following content (uncommenting the appropriate lines), and run it to deploy: ```bash{13,20,23} #!/usr/bin/env sh @@ -45,6 +44,9 @@ By default, the build output will be placed at `dist/`. You may deploy this `dis # navigate into the build output directory cd dist + + # add .nojekyll to bypass GitHub Page's default behavior + touch .nojekyll # if you are deploying to a custom domain # echo 'www.example.com' > CNAME |