ci: avoid attempting to get CSC_KEY_PASSWORD interactively in github actions

This commit is contained in:
Tom French 2022-05-30 00:16:00 +01:00 committed by James Long
parent 97cf072fc6
commit 86fbab2d2a

View file

@ -65,10 +65,11 @@ if [ -n "$RELEASE" ]; then
fi
if [ "$OSTYPE" == "msys" ]; then
if [ -z "$CIRCLE_TAG" ]; then
if [ $CI != true ]; then
read -s -p "Windows certificate password: " -r CSC_KEY_PASSWORD
export CSC_KEY_PASSWORD
else
elif [ -n "$CIRCLE_TAG" ]; then
# We only want to run this on CircleCI as Github doesn't have the CSC_KEY_PASSWORD secret set.
certutil -f -p ${CSC_KEY_PASSWORD} -importPfx ~/windows-shift-reset-llc.p12
fi
fi