From e58a88d3ef36f34cfdc4f1441e87dab17d1c5653 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 20 Dec 2023 14:18:54 +0100 Subject: [PATCH] Reenable crates.io releases (fixes #4291) (#4294) * Reenable crates.io releases (fixes #4291) * disable docker release for now * fixes * fix indent * move to top * install libssl * -y * apt update * debian version * install cargo, git * use cargo install * move to orig position --- .woodpecker.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6e30293de..1ae2df457 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -262,6 +262,19 @@ steps: when: event: cron + # using https://github.com/pksunkara/cargo-workspaces + publish_to_crates_io: + image: *rust_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" + - cargo workspaces publish --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}" + secrets: [cargo_api_token] + when: + event: tag + notify_on_failure: image: alpine:3 commands: