Add a daily article publisher action for the blog - #10
Conversation
|
GitHub Actions CI (online): Push run: https://github.com/v-modal/v-modal.github.io/actions/runs/31208223563 (success) Local run: python -m pytest -q Verified end to end locally as well: a real run renders articles/20260807-multimodal-embeddings.html using the same HTML template as the existing articles and prepends its entry to the top of index.html; running again the same day is a no-op (one article per day). With no content keys set it falls back to the topic's built-in body, so the output is well formed before Bright Data or SerpApi is configured. |
|
Closing this. Per the updated plan, the daily article action now lives in the private bot repo and commits the generated HTML into this repository instead. Superseded by https://github.com/arita37/vmx_bot/pull/6 . |
Adds a scheduled GitHub Action that posts a new article to the blog each day and opens a pull request with it for review, so nothing goes live until it is merged.
What it does, once a day:
To turn on the live AI content, add two repository secrets (the same values already used by the release bot): BRIGHT_DATA_API_KEY and SERP_API_KEY. Both are optional; with neither set it still publishes using the built-in topic bodies.
For the action to open pull requests, Settings, Actions, General, Workflow permissions must allow GitHub Actions to create and approve pull requests.
You can also run it by hand from the Actions tab (publish-article), with a dry-run option that renders and logs an article without opening a pull request, and an option to force a specific topic.
This also adds a small CI workflow that runs the offline test suite (24 tests) on every push and pull request. More detail is in publisher/README.md.