When the publish crates workflow fails (or hangs) like this: https://github.com/eclipse-zenoh/zenoh/actions/runs/9592753181/job/26451953639 we are unable to re-run the same workflow with the same version because crates.io won't allow publishing the same version again. The code should be improved to check if the crate version already exists and skip publication. This way we can re-run the release workflow without the need to bump the version and yank the failed one from crates.io
Describe the feature
When the publish crates workflow fails (or hangs) like this: https://github.com/eclipse-zenoh/zenoh/actions/runs/9592753181/job/26451953639 we are unable to re-run the same workflow with the same version because crates.io won't allow publishing the same version again. The code should be improved to check if the crate version already exists and skip publication. This way we can re-run the release workflow without the need to bump the version and yank the failed one from crates.io