mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56: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 doc $ADDITIONAL_ARGS
|
||||
else
|
||||
# Continue if the publish fails, as we may be re-triggering the
|
||||
# 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
|
||||
RUSTFLAGS=$RF cargo publish --token $TOKEN $ADDITIONAL_ARGS
|
||||
fi
|
||||
|
||||
popd
|
||||
|
Loading…
x
Reference in New Issue
Block a user