Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added automatic publishing to crates.io on publish #8263

Merged
merged 5 commits into from
May 29, 2024

Conversation

rdelfin
Copy link
Contributor

@rdelfin rdelfin commented Mar 16, 2024

The last few releases of the rust crate have not gotten published to crates.io, presumably as they still require publishing manually. This causes a mismatch in CLI and library versions that can introduce breaking changes which are only solvable by pulling in flatbuffer versions directly from github instead of going through crates.io, which is not ideal (see #8257).

This PR adds support for automatically publishing to the rust crates library using katyo/publish-crates github action. This will need adding the appropriate secrets from your side.

Resolves #8257

@github-actions github-actions bot added the CI Continuous Integration label Mar 16, 2024
Change secret name.
dbaileychess
dbaileychess previously approved these changes May 29, 2024
remove extra space added in merge
@dbaileychess
Copy link
Collaborator

Thanks, meaning to get this in at some point.

@dbaileychess dbaileychess enabled auto-merge (squash) May 29, 2024 01:15
@dbaileychess dbaileychess merged commit 5ba66f7 into google:master May 29, 2024
46 checks passed
@dbaileychess
Copy link
Collaborator

I manually ran a Release and get the following error. Mind if you can take a look? https://github.com/google/flatbuffers/actions/runs/9278729149/job/25530167137

@rdelfin
Copy link
Contributor Author

rdelfin commented Jun 4, 2024

@dbaileychess Oh! I must have missed a spot where I specified the relative directory of the crate.

Comment on lines +136 to +137
run:
working-directory: ./rust
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be enough to get it working though 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbaileychess: I think this needs to be ./rust/flatbuffers and maybe there needs to be a separate one for ./rust/flexbuffers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v24.3.7 of Rust crate not released to crates.io
2 participants