]> Untitled Git - lemmy.git/commitdiff
Set version name for crates.io release (#2928)
authorNutomic <me@nutomic.com>
Wed, 7 Jun 2023 00:24:06 +0000 (02:24 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 00:24:06 +0000 (20:24 -0400)
* Set version name for crates.io release

ref https://github.com/LemmyNet/lemmy-ui/issues/1052

* fix yml

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
.woodpecker.yml

index 918a26affb4eb3431974ff0ce6f3d428a0252fb7..ae1925a29ac45cb8fdf6b02f466ce1ce952b5cd8 100644 (file)
@@ -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"