Cargo installing example binaries from published workspace

We recently changed our project to a workspace with several subprojects.
In the past, we used cargo install --bins --examples --version <versionnumber> <crate_name> to install our software.
Now, only the main binaries get installed, none of the example binaries get built and installed.

If I manually do cargo build --examples --release in the root of the git repo, everything works as expected.

How can I get back the old behavior of cargo install to also install the example binaries for a project?

cargo install only operates on the package you specify as <crate_name>. If you want the examples for all packages in the workspace, you will have to specify the name of each package. Note that cargo install will independently build each package and discard the target dir before building the next package.