Skip to content

A local-first personal finance app

ci: avoid attempting to get CSC_KEY_PASSWORD interactively in github actions

Tom French86fbab2d2a2e
diff --git a/bin/package b/bin/package
index 4e4dac5c80..43882100a3 100755
--- a/bin/package
+++ b/bin/package
@@ -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