Skip to content
eldesh edited this page Mar 8, 2020 · 5 revisions

リリース手順

  1. Read official document
  2. Put your API token to ~/.cargo/credentials
  3. Check owners of crate
    $ cargo owner --list
        Updating crates.io index
    eldesh (eldesh)
    github:idein:engineers (Engineers)
    
  4. Make a release branch
    $ git checkout -b release/x.y.z
    
  5. Bump up version
    1. Update Cargo.toml > version
    2. cargo build (updating Cargo.lock)
  6. Check test passing
    $ cargo build --examples
    $ cargo doc
    $ cargo test
    
  7. Check packaging passing
    $ cargo package
    
  8. Push the branch
    $ git push release/x.y.z
    
  9. Make a pull request
  10. Merge the pull request
  11. Add a new tag
    $ git tag vX.Y.Z
    
  12. 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
    
  13. Packaging (at new working dir)
    new-libv4l-sys$ cargo package
    
  14. Calm down
    new-libv4l-sys$ cargo publish --dry-run
    
  15. Publish (at new working dir)
    new-libv4l-sys$ cargo publish
    
  16. Publish the new tag
    new-libv4l-sys$ git push origin vX.Y.Z
    
  17. 🎉
Clone this wiki locally