2023-03-19 17:11:15 +00:00
|
|
|
# Creating a Release
|
|
|
|
|
2023-06-11 14:23:23 +00:00
|
|
|
[crates.io](https://crates.io/crates/ratatui) releases are automated via [GitHub
|
|
|
|
actions](.github/workflows/cd.yml) and triggered by pushing a tag.
|
|
|
|
|
2023-08-13 16:21:00 +00:00
|
|
|
1. Record a new demo gif if necessary. The preferred tool for this is
|
|
|
|
[vhs](https://github.com/charmbracelet/vhs) (installation instructions in README).
|
2023-06-11 14:23:23 +00:00
|
|
|
|
2023-06-11 20:33:25 +00:00
|
|
|
```shell
|
|
|
|
cargo build --example demo
|
2023-08-13 16:21:00 +00:00
|
|
|
vhs examples/demo.tape --publish --quiet
|
2023-06-11 20:33:25 +00:00
|
|
|
```
|
2023-06-11 14:23:23 +00:00
|
|
|
|
2023-08-13 16:21:00 +00:00
|
|
|
Then update the link in the [examples README](./examples/README) and the main README. Avoid
|
|
|
|
adding the gif to the git repo as binary files tend to bloat repositories.
|
2023-03-19 17:11:15 +00:00
|
|
|
|
|
|
|
1. Bump the version in [Cargo.toml](Cargo.toml).
|
2023-08-07 13:30:03 +00:00
|
|
|
1. Bump versions in the doc comments of [lib.rs](src/lib.rs).
|
2023-06-11 14:23:23 +00:00
|
|
|
1. Ensure [CHANGELOG.md](CHANGELOG.md) is updated. [git-cliff](https://github.com/orhun/git-cliff)
|
|
|
|
can be used for generating the entries.
|
|
|
|
1. Commit and push the changes.
|
|
|
|
1. Create a new tag: `git tag -a v[X.Y.Z]`
|
|
|
|
1. Push the tag: `git push --tags`
|
2023-07-22 10:34:11 +00:00
|
|
|
1. Wait for [Continuous Deployment](https://github.com/ratatui-org/ratatui/actions) workflow to
|
2023-06-11 14:23:23 +00:00
|
|
|
finish.
|