katyo / publish-crates

GitHub action to get easy publishing of Rust crates
MIT License
74 stars 22 forks source link

Issues automating bump and publsh #724

Closed rdelfin closed 7 months ago

rdelfin commented 7 months ago

I have a repo (https://github.com/rdelfin/flatbuffers-build) where I'm trying to automate the build and publish process by having the version bump happen automatically and using this workflow to publish a crate. It's currently setup as a workspace, with one of the crates purely being an example crate.

Unfortunately, once I've done a first release I can't seem to get it to release any subsequent versions, where it always fails with the same error (e.g. a failed job):

Error: It seems package 'flatbuffers-build' modified since '0.0.0+flatc-23.5.26' so new version should be published

Depending on the configuration I give this crate I can either get it to fail when this happens, or have it ignore the crate and continue. No matter what I do though, I can't get it to publish the crate to crates.io. Shouldn't this workflow be publishing the crate, given that it says a new version is being published, or am I missunderstanding the purpose of this workflow?

Please let me know if I can provide additional information!

rdelfin commented 7 months ago

I have figured out the issue. My workflow was using the commit before the version bump. Sorry! Closing this issue