-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: move the release process to its own file * chore: remove extra whitespace in rust code block * chore: better with a title :) !
- Loading branch information
Showing
2 changed files
with
58 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Release process | ||
|
||
First, make sure you are logged-in https://crates.io with: `cargo login`. | ||
If you don't have write access to **Logos**' crates, you can still | ||
perform steps 1-4, and ask a maintainer with accesses to perform step 5. | ||
|
||
This project uses `cargo-release` to publish all packages with more ease. | ||
Note that, by default, every command runs in *dry mode*, and you need to append `--execute` | ||
to actually perform the action. | ||
|
||
Here are the following steps to release a new version: | ||
|
||
1. create a branch `release-x.y.z` from the `master` branch; | ||
2. run and commit `cargo release version --workspace <LEVEL>`; | ||
3. run and commit `cargo release replace --workspace`; | ||
4. push your branch and create a pull request; | ||
5. and, once your branch was merged to `master`, run the following: | ||
```bash | ||
cargo release publish --package logos-codegen | ||
cargo release publish --package logos-derive | ||
cargo release publish --package logos-cli | ||
cargo release publish --package logos | ||
``` | ||
|
||
And voilà! |