Skip to content

Commit 352a61d

Browse files
committed
commit changes I made some time ago
1 parent de2a3ef commit 352a61d

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

RELEASE.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
# Setting up
1+
# Releasing
22

3-
Install `cargo-release` with:
3+
Ensure the latest version of `cargo-release` is installed:
44

55
```shell
66
cargo install cargo-release
77
```
88

9-
# Configuration
9+
Choose what level this release should be: `major`, `minor`, or `patch`. Do a dry run at that level.
1010

11-
Configuration goes in `release.toml`
11+
```shell
12+
cargo release -v LEVEL
13+
```
1214

13-
# Releasing
15+
Once that looks good, do the actual release.
1416

1517
```shell
16-
# First, choose `major`, `minor`, or `patch` for the level to release
18+
cargo release --execute LEVEL
19+
```
1720

18-
# Next, run the command in dry-run mode
19-
$ cargo release -v LEVEL
21+
Then publish the tutorial for the new version.
2022

21-
# Then do it for real with the same level
22-
$ cargo release --execute LEVEL
2323

24-
# Then publish an updated tutorial
25-
$ script/publish_tutorial
24+
```shell
25+
script/publish_tutorial
2626
```
27+
28+
# Configuration
29+
30+
Configuration goes in `release.toml`

release.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pre-release-hook = [ "cargo", "clippy" ]
12
pre-release-commit-message = "{{crate_name}} {{version}}"
23
tag-message = "{{tag_name}}"
34
tag-name = "{{prefix}}v{{version}}"

0 commit comments

Comments
 (0)