Skip to content

Fix Astro GitHub Pages deployment - #23

Open
chizuchizu wants to merge 1 commit into
masterfrom
fix/github-pages-deployment
Open

Fix Astro GitHub Pages deployment#23
chizuchizu wants to merge 1 commit into
masterfrom
fix/github-pages-deployment

Conversation

@chizuchizu

Copy link
Copy Markdown
Member

Summary

  • trigger the Pages workflow from the repository's actual default branch, master
  • add deployment concurrency so newer site builds supersede stale runs
  • update the checkout and Pages deployment actions to their current major versions

Why

The previous Pages build ran Jekyll against the Astro source tree, causing Astro component script blocks to be parsed as invalid YAML. A workflow was added to master, but it targeted the nonexistent main branch and therefore would not run.

Validation

  • npm run build (11 pages generated successfully)
  • workflow YAML parsed successfully
  • branch rebased onto the latest origin/master

After merge, the Pages publishing source should be set to GitHub Actions under Settings → Pages.

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

Successfully merging this pull request may close these issues.

1 participant