Skip to content

Add a CI to publish crates to crate.io - #94

Merged
schteve merged 2 commits into
lobaro:masterfrom
mcu-rust:release_ci
Dec 17, 2025
Merged

schteve merged 2 commits into
lobaro:masterfrom
mcu-rust:release_ci

Conversation

@JalonWong

Copy link
Copy Markdown
Contributor

#93

@JalonWong JalonWong changed the title Add a CI workflow to publish to crate.io Add a CI to publish crates to crate.io Aug 16, 2025
@schteve

schteve commented Sep 15, 2025

Copy link
Copy Markdown
Collaborator

I don't have crates.io access, I assume only niondir does. But it sounds like this would make it easier to get new versions published. I think regardless we need to start publishing new versions, the latest release is very very old.

@JalonWong

JalonWong commented Sep 16, 2025 •

Copy link
Copy Markdown
Contributor Author

@schteve Yes, I think so. Can you contact him to do the setting on crate.io? It's pretty easy.

@schteve

schteve commented Sep 28, 2025

Copy link
Copy Markdown
Collaborator

@niondir

@JalonWong

Copy link
Copy Markdown
Contributor Author

@niondir Can you please do the setting on crate.io? It's pretty simple, only three fields need to be filled in (owner, name, workflow filename).

https://crates.io/docs/trusted-publishing

@niondir

niondir commented Dec 9, 2025

Copy link
Copy Markdown
Member

should be active now

@JalonWong

JalonWong commented Dec 10, 2025 •

Copy link
Copy Markdown
Contributor Author

@niondir Thanks a lot! Did you set up https://crates.io/crates/freertos-cargo-build as well? We also need it.

@niondir

niondir commented Dec 11, 2025

Copy link
Copy Markdown
Member

Added as well

@JalonWong

Copy link
Copy Markdown
Contributor Author

@niondir Thank you!
@schteve Can this PR be merged?

@schteve

schteve commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

I'm good with it, just so I understand, after merging this I can create new releases by pushing a tag starting with 'v'? Like 'v0.2.0'.

@JalonWong

Copy link
Copy Markdown
Contributor Author

@schteve Yes, if everything is set correctly. I have tried this on other repositories.
And don't forget to bump the version number in Cargo.toml before you trigger the workflow.

@schteve
schteve merged commit 0cec1f1 into lobaro:master Dec 17, 2025
4 checks passed
@JalonWong
JalonWong deleted the release_ci branch December 18, 2025 16:43
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.

3 participants