GHA: Try to fail the build if notarization failed

This commit is contained in:
aboyko
2023-11-17 16:06:36 -05:00
parent 982260c130
commit 54b83fc819

View File

@@ -10,5 +10,10 @@ cd $dir
xcrun notarytool submit ./${dmg_filename} --keychain-profile $notarize_profile --wait
echo "Staple and generate checksums for ${dmg_filename}"
xcrun stapler staple $dmg_filename
shasum -a 256 $dmg_filename > ${dmg_filename}.sha256
md5 $dmg_filename > ${dmg_filename}.md5
if [ $? -eq 0 ]; then
shasum -a 256 $dmg_filename > ${dmg_filename}.sha256
md5 $dmg_filename > ${dmg_filename}.md5
else
echo "Notarization failed"
exit 1
fi