Skip to content

Commit

Permalink
add: REALESE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
salam99823 committed Dec 4, 2024
1 parent dbdbca7 commit 27c0309
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions REALESE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Release Process

- leave the `Cargo.toml` package version alone :)
- trigger the `tag and publish crate [manual]` action and specify
the release increment (major, minor, or patch)
- once the action completes, the `Cargo.toml`
will be updated and the crate will be live on `crates.io`
- create a release (with title, notes, thanks, etc)
and tie it to the tag that was created by the action / new crate version

## Execution

The order of operations for tagging and publishing in the action is this

1. run all checks, i.e. fmt, clippy, tests, etc
1. push change / update to the `Cargo.toml`
1. push the new tag to the repo
1. publish the new version to crates.io

## Troubleshooting

- if step 1 of execution fails, after addressing the error, you run the action again
- if step 2 of execution fails, after addressing the error, you run the action again
- if step 3 of execution fails (the `Cargo.toml` version was incremented),
after addressing the error, you should manually tag (github's ui or the cli)
and manually publish the crate with `cargo publish`
- if step 4 of execution fails
(the `Cargo.toml` version was incremented and there's a new corresponding tag),
after addressing the error, you should manually publish the crate with `cargo publish`

0 comments on commit 27c0309

Please sign in to comment.