Skip to content

Commit

Permalink
chore(bin): fix bin/publish script running cargo publish twice
Browse files Browse the repository at this point in the history
The second invocation would always fail, since that version had already
been published. This command failing would cause the script to exit with
an error, and thus fail to push the release tag.

This commit fixes this by removing the second `cargo publish`.
  • Loading branch information
hawkw committed Jul 1, 2022
1 parent 9638587 commit beb227b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ release() {
"${CARGO_PACKAGE[@]}"
"${CARGO_PUBLISH[@]}"

cargo publish "$VERBOSE" "$DRY_RUN"

status "Tagging" "$TAG"
if [[ "$DRY_RUN" ]]; then
echo "# git tag $TAG && git push --tags"
Expand Down

0 comments on commit beb227b

Please sign in to comment.