-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tomas/split-release' (#4117)
* tomas/split-release: changelog: add #4117 exclude apps crate from libs release apps: don't use workspace version anymore add a script to release apps bins prefix libs release tag with "libs-" mv scripts/release.sh scripts/release_libs.sh add different commit msg for libs release add a different release config for apps
- Loading branch information
Showing
8 changed files
with
60 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- Starting from the next release the Namada binary apps (`namada`, `namadan`, | ||
`namadac` and `namadaw`) will be versioned separately from the libaries | ||
(everything else including the wasm). The libraries releases will have their | ||
tag prefixed with "lib-" and will continue with the current versioning scheme. | ||
([\#4117](https://github.com/anoma/namada/pull/4117)) |
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,7 @@ | ||
allow-branch = ["main", "maint-*"] | ||
consolidate-commits = true | ||
pre-release-commit-message = "Namada {{version}}" | ||
publish = false | ||
push = false | ||
shared-version = false | ||
tag = false |
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,41 @@ | ||
#!/bin/sh | ||
# depends on cargo-release 0.24.4, git 2.24.0 or later, unclog 0.5.0 | ||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
echo "please specify a version to release" | ||
exit 1 | ||
fi | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
if [ "$REPO_ROOT" != "$PWD" ]; then | ||
echo "please run from repository root" | ||
exit 1 | ||
fi | ||
|
||
VERSION="$1" | ||
TAG_NAME="v$1" | ||
|
||
# start from a clean build | ||
git clean -fxd | ||
|
||
# update the apps crate versions (1 commit) | ||
HASH_BEFORE=$(git rev-parse HEAD) | ||
cd $REPO_ROOT/crates/apps | ||
cargo release version --execute $VERSION | ||
git commit -am "Namada $VERSION" | ||
HASH_AFTER=$(git rev-parse HEAD) | ||
|
||
# update the changelog (1 fixup) | ||
cd $REPO_ROOT | ||
unclog release $TAG_NAME | ||
unclog build > CHANGELOG.md | ||
git add .changelog CHANGELOG.md | ||
git commit --fixup=$HASH_AFTER | ||
|
||
# show the user the result | ||
git rebase --interactive --autosquash --keep-base $HASH_BEFORE | ||
|
||
echo "final $TAG_NAME commit ready for testing" | ||
|
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
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