Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid YAML front matter in" - error with Github Pages build process #6830

Closed
1 task done
matt765 opened this issue Apr 12, 2023 · 4 comments
Closed
1 task done

Comments

@matt765
Copy link

matt765 commented Apr 12, 2023

What version of astro are you using?

2.2.3

Are you using an SSR adapter? If so, which one?

Vercel

What package manager are you using?

npm

What operating system are you using?

Windows

What browser are you using?

All of them

Describe the Bug

I have AstroJS project uploaded on Github as open source repository. I don't use Github Pages for hosting, but when it was enabled there was an error in build process. I didn't find working solution to fix it yet. I compared Layout.astro and Index.astro files to current Astro starter but I didn't find any bugs. VSCode with Eslint don't show any errors too.

Log file with an error: https://github.com/matt765/Tailcast/actions/runs/4639085395/jobs/8209553067
Repository: https://github.com/matt765/Tailcast

image

Link to Minimal Reproducible Example

https://github.com/matt765/Tailcast/actions/runs/4639085395/jobs/8209553067

Participation

  • I am willing to submit a pull request for this issue.
@Princesseuh
Copy link
Member

Princesseuh commented Apr 13, 2023

That happens when your action is misconfigured and Jekyll is trying to build an Astro project.

We have an official guide and action you can use to set up GitHub Pages correctly: https://docs.astro.build/en/guides/deploy/github/

Closing since this is not a bug in Astro, it's just how GitHub Pages work when there's no action configured

@aramfe
Copy link

aramfe commented Apr 19, 2023

Make sure you referenced the correct workflow file that is ran.

@isaackwok
Copy link

I have the same issue too and I solved it by adding a file named .nojekyll to the root of my project.

xrecoba added a commit to xrecoba/xrecoba.github.io-astro that referenced this issue Aug 23, 2023
kohonda added a commit to kohonda/kohonda.github.io that referenced this issue Dec 18, 2023
@donokuda
Copy link

donokuda commented Jan 8, 2024

I have the same issue too and I solved it by adding a file named .nojekyll to the root of my project.

This solved my issue as well. Would it make sense to add this as a note to the documentation?

outatimedev added a commit to outatimedev/outatime-dev that referenced this issue Mar 14, 2024
henryhale added a commit to henryhale/henryhale.github.io that referenced this issue Mar 31, 2024
This commit fixes CI workflow as shown here: withastro/astro#6830
nikitatran added a commit to nikitatran/astro-simple-resume that referenced this issue Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants