Skip to content

ci: release automatically through core's release workflow - #2586

Merged
KartikP merged 2 commits into
masterfrom
kp/auto-release
Oct 9, 2026
Merged

KartikP merged 2 commits into
masterfrom
kp/auto-release

Conversation

@KartikP

@KartikP KartikP commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Makes vision releases fully automatic, using the shared workflows added in brain-score/core#180.

Depends on brain-score/core#180. Both workflows here call brain-score/core/.github/workflows/*.yml@main, which do not exist until that PR merges. Do not merge this first. The human setup steps (GitHub App, org secrets, pypi environment, ruleset, PyPI trusted publisher) are in the setup guide and are not part of this PR.

Changes

  • release.yml (new): on each push to master, calls core's reusable release workflow with release-paths: ^brainscore_vision/(?!(models|benchmarks|data|metrics)/), so plugin-only merges never release. The PR title type picks the level (feat minor, fix/perf patch, major only with ! or BREAKING CHANGE plus the major update label). The PyPI publish job runs in this file, because PyPI trusted publishing does not work inside a reusable workflow. A manual Run workflow with a level input cuts the first release.
  • pr-title.yml (new): calls core's PR-title check; it comments on a bad title with the allowed types.
  • bump_version.yml deleted (already disabled; its last runs failed in June). Its secrets APPROVAL_TOKEN and WORKFLOW_AUTOMERGE can be deleted after merge.
  • pyproject.toml: [tool.bumpversion] replaced by [tool.semantic_release].
  • docs/source/modules/version_bumping.rst describes the new process.

Starting version

PyPI has 2.3.22, pyproject.toml says 2.3.22, and the tag v2.3.23 exists on an unmerged bump branch but was never published. python-semantic-release takes the highest vX.Y.Z tag in the repository, even one not on master, so the next versions are 2.3.24 (patch) or 2.4.0 (minor); it never re-creates v2.3.23. Tested locally with python-semantic-release 10.7.0 on a scratch repo with the same tag layout. Recommended first release: manual run with level minor, giving 2.4.0 (master has 127 commits since 2.3.22, including new helpers). 2.3.23 stays a gap on PyPI.

Replaces the label-driven bump_version workflow and its bump PRs: each
squash merge that changes a non-plugin file releases at the level its PR
title gives. Depends on brain-score/core#180.
@KartikP
KartikP marked this pull request as ready for review October 9, 2026 10:20
@KartikP
KartikP merged commit 4d1c925 into master Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant