Skip to content

Commit

Permalink
[ci] Fix publish (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam authored Sep 3, 2024
1 parent 0e88f87 commit b6f5ca9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b6f5ca9

Please sign in to comment.