Weekly Hugging Face Hub Releases with AI‑Assisted Notes
Automate huggingface_hub releases with a GitHub Actions workflow that uses an AI model to draft notes and a deterministic script to validate PR coverage.
Set up the `release.yml` workflow, configure the GLM‑5.2 model, and run a manual dispatch to test the AI‑draft and validation pipeline.
Summary
On June 23 2026, Hugging Face announced that the huggingface_hub Python client will now ship a new release every week, driven by a single GitHub Actions workflow that automates version bumping, tagging, downstream test branches, and release notes generation. The workflow uses an open‑weights model (currently GLM‑5.2 from Z.ai) to draft release notes and Slack announcements, which are then reviewed and edited by a human before promotion to a final release. A deterministic script extracts all PR numbers from the commit range and stores them as a manifest; the AI model drafts a changelog, and the script verifies that the notes include every PR, prompting the model to fix any missing or extra entries. The process also opens test branches in dependent libraries (transformers, datasets, diffusers, sentence‑transformers) to catch breaking changes early, and publishes the package to PyPI via Trusted Publishing. Release notes are stored in a Hugging Face bucket in both raw AI‑draft and human‑edited forms for future training. The approach eliminates manual version bumping, tagging, and release note writing, while retaining human oversight for accuracy. The new weekly cadence reduces the release cycle from 4–6 weeks to 1 week, enabling faster feature delivery to users. The workflow also includes a Slack announcement step that formats the notes in the team’s voice and posts them to the internal channel. The release process showcases how AI can streamline software releases while maintaining quality through deterministic checks.
Key changes
- Weekly releases of huggingface_hub via a single GitHub Actions workflow.
- AI model (GLM‑5.2) drafts release notes and Slack announcements; human reviews before final release.
- Deterministic script extracts PR numbers, validates AI‑draft against manifest, and prompts fixes.
- Opens downstream test branches in transformers, datasets, diffusers, sentence‑transformers.
- Publishes package to PyPI using Trusted Publishing with OIDC token.
- Stores raw AI‑draft and human‑edited release notes in Hugging Face bucket.
- Eliminates manual version bumping, tagging, and release note writing.
- Reduces release cadence from 4–6 weeks to 1 week.
- Includes Slack announcement step with team voice formatting.
- Demonstrates AI‑assisted release process with human oversight.