Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
20 changes: 7 additions & 13 deletions scripts/DRAFT_NEW_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,13 @@ The version must be in `MAJOR.MINOR.PATCH` format.

The script will:

1. Update the top of `CHANGELOG.md`:
- point `Unreleased` at `NEW_VERSION...HEAD`
- add fresh empty sections for the next development cycle
- create a `NEW_VERSION` changelog section comparing the previous version to `NEW_VERSION`
2. Ask you to review `CHANGELOG.md`.
- You should enter `y` to proceed.
3. Update the package version in `Cargo.toml`.
4. Run `cargo test --profile fast`, which will also update `Cargo.lock`.
5. Commit `CHANGELOG.md`, `Cargo.toml`, and `Cargo.lock` with:
1. Update the package version in `Cargo.toml`.
2. Run `cargo test --profile fast`, which will also update `Cargo.lock`.
3. Commit `Cargo.toml` and `Cargo.lock` with new version:
- Message: `"bump version NEW_VERSION"`.
6. Create new release candidate tag, like `NEW_VERSION-rc1`, `NEW_VERSION-rc2`, etc.
7. Push tags.
8. Print the GitHub Actions URL.
4. Create new release candidate tag, like `NEW_VERSION-rc1`, `NEW_VERSION-rc2`, etc.
5. Push tags.
6. Print the GitHub Actions URL.

## After the script runs

Expand All @@ -49,7 +43,7 @@ The script will:
3. Go to GitHub Releases:
<https://github.com/ouch-org/ouch/releases>
4. Open the drafted release for the RC tag.
5. Continue polishing the release notes/changelog if needed.
5. Continue polishing the release notes if needed.
6. Publish to crates.io:
```sh
cargo publish
Expand Down
2 changes: 1 addition & 1 deletion scripts/package-release-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ for platform in "${PLATFORMS[@]}"; do
fi
mv "${path}-${DEFAULT_FEATURES}" "$path" # remove the annoying suffix

cp ../{README.md,LICENSE,CHANGELOG.md} "$path"
cp ../{README.md,LICENSE} "$path"
mkdir -p "$path/man"
mkdir -p "$path/completions"

Expand Down