mirror of https://github.com/LemmyNet/lemmy.git
again.
parent
ddffdd49d7
commit
553b1f4cd6
|
@ -130,7 +130,7 @@ steps:
|
|||
- cargo install cargo-workspaces
|
||||
- cp -r migrations crates/db_queries/
|
||||
- cargo login "$CARGO_TOKEN"
|
||||
- cargo workspaces publish --from-git --allow-branch main --yes custom "${DRONE_TAG}"
|
||||
- cargo workspaces publish --from-git --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}"
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/*
|
||||
|
|
|
@ -29,11 +29,13 @@ for crate in crates/*; do
|
|||
sed -i "0,/version = \"$old_tag\"/s//version = \"$new_tag\"/g" Cargo.toml
|
||||
# update version of lemmy dependencies
|
||||
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
|
||||
git add Cargo.toml
|
||||
popd
|
||||
done
|
||||
# same as above, for the main cargo.toml
|
||||
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
|
||||
sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml
|
||||
git add Cargo.toml
|
||||
popd
|
||||
|
||||
# The commit
|
||||
|
|
Loading…
Reference in New Issue