Closed dcroote closed 2 years ago
thanks, @dcroote :)
what's the easiest way to publish automatically to crates.io?
maybe we publish only prs with semantic version tags?
Hi @rahul-thakoor - sure thing!
I added a job to the workflow that depends on the build job and publishes only push commits with a tag to crates.io. Note you'll need to go to this repo's Settings, then Secrets, and add a new repository secret named CRATES_IO_TOKEN
for this to work.
As mentioned in https://github.com/rahul-thakoor/rust_gpiozero/issues/11#issuecomment-997450687, here is the GitHub Actions build replacement for travis CI. It uses a matrix strategy with 3 targets and leverages the built-in
cross
functionality of theactions-rs/cargo@v1
Action.Here is the successful Actions run on my fork.