Skip to content
Edit this page View source of this page

Releases

Releases

Releases are cut by CI. Every push to main runs .github/workflows/release.yml; a commit message containing [skip release] skips the whole workflow, including the Forge mirror.

Version and tag

The version is static CalVer (YYYY.MM.N) in pyproject.toml — it is not derived from git tags. The workflow derives the release tag as v$(uv version --short) and skips the release when that tag already exists.

The version has to be static because uv version --short fails on dynamic versions, and the workflow cannot compute its tag otherwise.

To cut a release, bump the version in pyproject.toml and push to main.

Jobs

Job What it does
version Computes the CalVer tag and reports whether it is new.
release uv build, drafts the release notes, creates the GitHub release, uploads dist/.
pypi Publishes to PyPI with OIDC trusted publishing.
mirror Pushes main and any missing tags to the 3GPP Forge.

mirror depends only on version and release, so the Forge still receives the push when the PyPI publish fails.

Release notes

scripts/release_notes.py drafts the notes from the commits since the previous tag, using Cohere's native v2 chat API (POST {COHERE_API_BASE}/chat).

Name Kind Purpose
COHERE_API_KEY Repository secret API key.
COHERE_API_BASE Repository variable https://api.cohere.com/v2.
COHERE_MODEL Repository variable command-a-03-2025.

The model matters. command-a-plus-05-2026 is a reasoning model: on this prompt it spends tens of thousands of reasoning tokens, hits the model's output limit with finish_reason=MAX_TOKENS, degenerates into a repetition loop, and overruns the request timeout. Command A answers the same prompt in seconds. The answer is additionally bounded with max_tokens, and a rate-limited response is waited out per the Retry-After header.

The step is continue-on-error: if it fails, the release falls back to GitHub-generated notes, so a missing key never blocks a release.

PyPI trusted publishing

The publisher is registered on PyPI under Manage → Publishing → Add a new publisher → GitHub:

PyPI field Value
Owner jr2804
Repository pdf-remote-converter
Workflow release.yml
Environment left empty

The environment field is deliberately empty. PyPI only checks the environment claim when the publisher names one, so a publisher without an environment accepts the job as it is — the pypi job runs with environment: pypi, and the publish succeeds either way.

Keep environment: pypi in the workflow. It works with an empty publisher today, and it would keep working unchanged if the publisher is later tightened to pypi; dropping it from the workflow would break that later tightening. The GitHub pypi environment exists so the job can reference it and so protection rules (required reviewers, wait timer) can be added to the publish step.

Forge mirror

The mirror job pushes main and any missing tags to forge.3gpp.org/rep/reimes/pdf-remote-converter using the FORGE_MIRROR_TOKEN repository secret. GitHub is the primary remote; the Forge is a mirror and is never pushed to by hand.