Skip to content

ci(blog): deploy Astro build to GitHub Pages#16

Merged
alabulei1 merged 1 commit into
mainfrom
ci/deploy-astro-to-pages
Jul 13, 2026
Merged

ci(blog): deploy Astro build to GitHub Pages#16
alabulei1 merged 1 commit into
mainfrom
ci/deploy-astro-to-pages

Conversation

@alabulei1

Copy link
Copy Markdown
Member

Why

GitHub Pages was configured as a legacy build serving raw files from the main branch root, so the Astro output in dist/ was never published. Consequences:

What

  • Add a deploy job to blog-framework.yml that builds dist/ and publishes it with actions/upload-pages-artifact + actions/deploy-pages, on every push to main, gated behind build-and-check.
  • Add pages: write / id-token: write permissions, the github-pages environment, and a pages concurrency group.
  • Push trigger no longer path-filtered, so root chrome (index*.html, sitemap.xml, CNAME) redeploys too.
  • Repo Pages source switched to "GitHub Actions" (done via API) to match.

After merge

The push to main runs build + deploy; /posts.json and /blog/gpt-5-6-token-station.html (all four languages) go live. Future articles need only their Markdown.

🤖 Generated with Claude Code

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>
@alabulei1
alabulei1 merged commit 6a87ca6 into main Jul 13, 2026
2 checks passed
@alabulei1
alabulei1 deleted the ci/deploy-astro-to-pages branch July 13, 2026 17:37
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