Skip to content

Migrate blog build from GitHub Actions to Vercel#31

Merged
abap34 merged 3 commits intomainfrom
vercel-build-migration
Mar 11, 2026
Merged

Migrate blog build from GitHub Actions to Vercel#31
abap34 merged 3 commits intomainfrom
vercel-build-migration

Conversation

@abap34
Copy link
Owner

@abap34 abap34 commented Mar 11, 2026

Summary

  • GitHub Actions の生成物自動 commit を無効化し、Vercel build に移行
  • public/posts/, posts.json, rss.xml 等の生成物を git 管理から除外
  • ビルドスクリプト scripts/vercel-build.sh に almo コンパイル・記事生成・RSS 生成を集約

Test plan

  • Vercel Preview デプロイが成功 (3分)
  • 記事ページ・トップページの表示確認

🤖 Generated with Claude Code

abap34 and others added 3 commits March 11, 2026 14:40
- Disable blog.yml workflow that was committing generated files to main
- Update vercel.json buildCommand to compile almo and generate posts/RSS
- Add generated files to .gitignore (public/posts/, posts.json, rss.xml, etc.)
- Untrack build artifacts from git index (git rm --cached)

This stops the main cause of repo bloat: CI committing generated HTML,
JSON indices, and cache files back to main on every push.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Vercel has a 256-character limit on buildCommand. Move the full build
pipeline (almo compile, blog generation, RSS, React build) into a
separate shell script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
curl from astral.sh is more reliable on Vercel's build image than
pip3 install. Also add PATH export for ~/.local/bin in build script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
my-site Ready Ready Preview, Comment Mar 11, 2026 6:04am

@abap34 abap34 merged commit 488cf10 into main Mar 11, 2026
2 checks passed
abap34 added a commit that referenced this pull request Mar 11, 2026
Migrate blog build from GitHub Actions to Vercel
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