tools: only sign release if promotion successful

Ref: https://github.com/nodejs/build/pull/1596

PR-URL: https://github.com/nodejs/node/pull/24669
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Rod Vagg 2018-11-27 20:19:29 +11:00 committed by Rich Trott
parent 84c2157a60
commit f34ca9f783

View File

@ -202,7 +202,9 @@ for version in $versions; do
ssh ${customsshkey} ${webuser}@${webhost} $promotecmd nodejs $version
if [ $? -eq 0 ];then
sign $version
fi
break
done