Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Automated My Daily Blog with GitHub Actions, Gemini and the Blogger API

说明与用途

使用 GitHub Actions、Gemini 和 Blogger API 自动发布每日博客,处理密钥管理、模型退役和 OAuth 令牌失效问题。

问题

Automate daily blog posting without manual intervention, ensuring credentials, model availability, and token validity.

结果

The automated pipeline publishes a new blog post every morning, handling credential storage, model retirement, and token expiry, while ensuring idempotency and quality guardrails.

工作流

  • Trigger GitHub Actions on a daily cron schedule.
  • Run generate_post.py to request a Gemini model to write a post about a skill from skills.txt.
  • Run post_to_blogger.py to publish the generated post via the Blogger API.
  • Commit the generated post file to prevent topic repetition.

证据

GitHub Actions runs a Python script on a schedule, Gemini writes the post, and the Blogger API publishes it.

来源

The key was in my local .env, but GitHub never sees your .env file.

来源

This model models/gemini-2.0-flash is no longer available.

来源

If your Google OAuth app is in Testing mode, refresh tokens expire after about 7 days.

来源

  • 记录日期: 2026-11-01T14:59:10.558Z