From 55195200fa1be168a66dbece2d075223e8ae3132 Mon Sep 17 00:00:00 2001 From: Danny Burrows <44483126+danny-burrows@users.noreply.github.com> Date: Thu, 22 Jul 2021 15:05:53 +0100 Subject: [PATCH] Update deploy.sh to include touch .nojekyll (#819) * Update deploy.sh to include touch .nojekyll * Update deploy.md Co-authored-by: Fred K. Schott --- docs/src/pages/guides/deploy.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/guides/deploy.md b/docs/src/pages/guides/deploy.md index 73b7942c1d..451c4ae2a7 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