fix_deploy_prod_script_2
Dessalines 2021-08-25 14:28:29 -04:00
parent ddffdd49d7
commit 553b1f4cd6
2 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,7 @@ steps:
- cargo install cargo-workspaces - cargo install cargo-workspaces
- cp -r migrations crates/db_queries/ - cp -r migrations crates/db_queries/
- cargo login "$CARGO_TOKEN" - 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: when:
ref: ref:
- refs/tags/* - refs/tags/*

View File

@ -29,11 +29,13 @@ for crate in crates/*; do
sed -i "0,/version = \"$old_tag\"/s//version = \"$new_tag\"/g" Cargo.toml sed -i "0,/version = \"$old_tag\"/s//version = \"$new_tag\"/g" Cargo.toml
# update version of lemmy dependencies # update version of lemmy dependencies
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
git add Cargo.toml
popd popd
done done
# same as above, for the main cargo.toml # 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\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml
git add Cargo.toml
popd popd
# The commit # The commit