Releasing Weblate

Release cycle

Weblate’s release and support lifecycle is documented in Release cycle.

Release planning

The features for upcoming releases are collected using GitHub milestones, you can see our roadmap at <https://github.com/WeblateOrg/weblate/milestones>.

Release process

Things to check prior to release:

  1. Check newly translated languages by ./scripts/list-translated-languages.py.

  2. Set final version by ./scripts/prepare-release.

  3. Make sure screenshots are up to date make -j 12 -C docs update-screenshots.

  4. Merge any possibly pending translations wlc push; git remote update; git merge origin/weblate

When building distribution packages locally, start from a clean checkout or remove ignored packaging artifacts such as build/, dist/, weblate.egg-info/, and generated weblate/locale/**/*.mo files.

Perform the release:

  1. Create a release ./scripts/create-release --tag (see below for requirements).

Pushing the weblate-<version> tag starts the distribution workflow in .github/workflows/setup.yml. It builds the package archives, runs package lint and installation checks using locked dependencies, and prepares signatures, attestations, release notes, and the SBOM. Publishing jobs download the validated artifacts instead of rebuilding them. PyPI and GitHub publishing run independently; check that both jobs succeed before continuing with the post-release steps.

The GitHub publishing command creates a draft, uploads all release assets, and then publishes it. Do not publish an empty GitHub release before the workflow runs. Published release assets are immutable; see Immutable GitHub releases.

If publishing fails, inspect both publishing targets before retrying. Remove an incomplete GitHub draft only after inspecting its assets, then rerun the failed publishing job. Correcting assets of a published immutable release requires a new version; do not move or reuse its tag.

Post release manual steps:

  1. Close GitHub milestone.

  2. Once the Docker image is tested, add a tag and push it.

  3. Include new version in .github/workflows/migrations.yml to cover it in migration testing.

  4. Increase version in the repository by ./scripts/set-version.py.

  5. Run uv run ./scripts/rtd-projects.py to preview the Read the Docs project sync and check the release builds. Store a Read the Docs API token with project administration access in ~/.config/readthedocs.token. The helper proposes new projects for translations above 50% in Documentation on Hosted Weblate and checks existing linked projects even if their completion has dropped.

    Run uv run ./scripts/rtd-projects.py --apply to create missing projects and update their shared settings. Add any projects listed for linking under Translations in the main Weblate project’s Read the Docs dashboard.

    For each new translation project, open Automation Rules in its dashboard and click Add Rule. For an existing project flagged for review, add the rule if it does not already activate Weblate release tags. Use these settings:

    • Check Enabled.

    • Enter Build docs for releases in Description.

    • Select Tag under Version types.

    • Select Custom match under Version predefined match pattern.

    • Enter ^weblate-\d+\.\d+(?:\.\d+)?$ in Version match pattern.

    • Leave all webhook filters blank.

    • Select Activate version under Action and save.

    The rule applies to future versions. Activate any existing inactive release to publish it from the project’s Versions page. Rerun the preview to check the translation links and build status.

To create tags using ./scripts/create-release, you need:

  • Repository administrator or organization owner permissions on WeblateOrg/weblate. Its tag-creation ruleset restricts tag creation to these roles. Tag updates and deletion are blocked even for administrators.

  • Push access to the Testing repository repository, where the script also creates a release tag.

  • A Git signing key configured for git tag -s.

Publishing configuration

The repository’s pypi environment allows deployments only from tags matching weblate-*. The weblate project’s trusted publisher must identify the WeblateOrg/weblate repository, the setup.yml workflow filename, and the pypi environment. Trusted publishing uses GitHub’s OpenID Connect (OIDC) identity instead of a stored PyPI API token. The PyPA publishing action uploads publish attestations alongside the package files.

These environment restrictions, the PyPI trusted publisher, and GitHub’s release-immutability setting are configured outside the checkout. Preserve their matching repository, workflow, and environment settings when renaming or moving the workflow or recreating the repository. See Verifying release artifacts for artifact verification.