From e97c30b930199ef35ff0cf9e04a3b3b6e6b239b3 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 7 Jun 2023 02:24:06 +0200 Subject: [PATCH] Set version name for crates.io release (#2928) * Set version name for crates.io release ref https://github.com/LemmyNet/lemmy-ui/issues/1052 * fix yml --------- Co-authored-by: Dessalines --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 918a26af..ae1925a2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -250,6 +250,7 @@ pipeline: publish_to_crates_io: image: *muslrust_image commands: + - 'echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"' - cargo install cargo-workspaces - cp -r migrations crates/db_schema/ - cargo login "$CARGO_API_TOKEN" -- 2.44.1