mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Fail immediately if publishing fails
This commit is contained in:
parent
b6cf27507c
commit
77f70831aa
@ -65,11 +65,7 @@ do_publish_for() {
|
|||||||
RUSTFLAGS=$RF cargo publish --dry-run --allow-dirty $ADDITIONAL_ARGS
|
RUSTFLAGS=$RF cargo publish --dry-run --allow-dirty $ADDITIONAL_ARGS
|
||||||
RUSTFLAGS=$RF cargo doc $ADDITIONAL_ARGS
|
RUSTFLAGS=$RF cargo doc $ADDITIONAL_ARGS
|
||||||
else
|
else
|
||||||
# Continue if the publish fails, as we may be re-triggering the
|
RUSTFLAGS=$RF cargo publish --token $TOKEN $ADDITIONAL_ARGS
|
||||||
# workflow and the package may have already been published.
|
|
||||||
if ! RUSTFLAGS=$RF cargo publish --token $TOKEN $ADDITIONAL_ARGS; then
|
|
||||||
echo "Warning: Failed to publish $1"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user