From b6f5ca9b4203ad293e487476cf711cb5f2793a76 Mon Sep 17 00:00:00 2001 From: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:24:06 +0200 Subject: [PATCH] [ci] Fix publish (#223) --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1afd77a..88bac63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,7 +139,13 @@ tag-job: #### stage: publish -unleash-to-crates-io: +publish-crates-dry: + stage: publish + <<: *docker-env + script: + - cargo publish --dry-run + +publish-crates: stage: publish <<: *docker-env <<: *publish-refs @@ -148,8 +154,7 @@ unleash-to-crates-io: - if [ $TAG == "new" ]; then echo "Publishing to crates.io"; - cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}; - cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}; + cargo publish; else echo "Tag was not updated. Not releasing."; fi