Skip to content

Commit

Permalink
Merge pull request withastro#43 from snowpackjs/gh-pages-nojekyll
Browse files Browse the repository at this point in the history
Update GitHub Pages deployment guide
  • Loading branch information
natemoo-re authored Jul 1, 2021
2 parents 29670f6 + 4bd91f0 commit 47c7923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/guides/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ 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.js`.
2. Inside your project, create `deploy.sh` with the following content (uncommenting the appropriate lines), and run it to deploy:
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:

```bash{13,20,23}
#!/usr/bin/env sh
Expand Down

0 comments on commit 47c7923

Please sign in to comment.