From 553b1f4cd662a8fffd48289344ece4ddd16eb13f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 25 Aug 2021 14:28:29 -0400 Subject: [PATCH] again. --- .drone.yml | 2 +- docker/prod/deploy.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1ee4819f6..0aa095a78 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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/* diff --git a/docker/prod/deploy.sh b/docker/prod/deploy.sh index 8529b17df..737a75dca 100755 --- a/docker/prod/deploy.sh +++ b/docker/prod/deploy.sh @@ -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