-
Notifications
You must be signed in to change notification settings - Fork 3
Home
eldesh edited this page Mar 8, 2020
·
5 revisions
- Read official document
- Put your API token to
~/.cargo/credentials
- Check owners of crate
$ cargo owner --list Updating crates.io index eldesh (eldesh) github:idein:engineers (Engineers)
- Make a release branch
$ git checkout -b release/x.y.z
- Bump up version
- Update
Cargo.toml > version
-
cargo build
(updatingCargo.lock
)
- Update
- Check test passing
$ cargo build --examples $ cargo doc $ cargo test
- Check packaging passing
$ cargo package
- Push the branch
$ git push release/x.y.z
- Make a pull request
- Merge the pull request
- Add a new tag
$ git tag vX.Y.Z
- Clone to the new working directory
$ git clone file:///home/idein/libv4l-sys new-libv4l-sys $ cd new-libv4l-sys $ git checkout vX.Y.Z
- Packaging (at new working dir)
new-libv4l-sys$ cargo package
- Calm down
new-libv4l-sys$ cargo publish --dry-run
- Publish (at new working dir)
new-libv4l-sys$ cargo publish
- Publish the new tag
new-libv4l-sys$ git push origin vX.Y.Z
- 🎉