-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: publish script
to work for workspace members
#1101
Conversation
@@ -74,24 +75,11 @@ for CRATE_DIR in ${ORDER[@]}; do | |||
fi | |||
done | |||
|
|||
# Wait again to make sure that the new version is published and available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest cargo publish
does indeed wait for registry to available so this is not needed anymore.
|
||
function read_toml () { | ||
NAME="" | ||
VERSION="" | ||
NAME=$(grep "^name" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/') | ||
VERSION=$(grep "^version" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/') | ||
VERSION=$(grep "^version" $DIR/Cargo.toml | sed -e 's/.*"\(.*\)"/\1/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to read the version
from the workspace Cargo.toml and not each crate
cd - > /dev/null | ||
done | ||
|
||
echo "Tagging jsonrpsee@$VERSION" | ||
set -x | ||
git tag -a v$VERSION -m "Version $VERSION" | ||
git tag -a -s v$VERSION -m "Version $VERSION" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sign the tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me if it appears to work when run :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
I'm guessing the git-lab test is failing because of a difference in rust versions.
The term deprecated method
has been replaced by deprecated associated function
for tests/ui/incorrect/rpc/rpc_deprecated_method.rs
Close #1084