ci(blog): deploy Astro build to GitHub Pages#16
Merged
Conversation
Pages was serving raw files from the main branch root (legacy build), so the Astro output in dist/ was never published: markdown-only articles (e.g. gpt-5-6-token-station) 404'd and the generated /posts.json never went live. Add a deploy job that builds dist/ and publishes it via actions/deploy-pages on every push to main, gated behind build-and-check. Pages source is switched to GitHub Actions to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
GitHub Pages was configured as a legacy build serving raw files from the
mainbranch root, so the Astro output indist/was never published. Consequences:gpt-5-6-token-station) returned 404 — no committedblog/<slug>.htmlexisted.posts.json, so new articles never appeared.What
deployjob toblog-framework.ymlthat buildsdist/and publishes it withactions/upload-pages-artifact+actions/deploy-pages, on every push tomain, gated behindbuild-and-check.pages: write/id-token: writepermissions, thegithub-pagesenvironment, and apagesconcurrency group.index*.html,sitemap.xml,CNAME) redeploys too.After merge
The push to
mainruns build + deploy;/posts.jsonand/blog/gpt-5-6-token-station.html(all four languages) go live. Future articles need only their Markdown.🤖 Generated with Claude Code