Skip to content

Commit

Permalink
MAINT: Explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Dec 18, 2024
1 parent 316599c commit 3db0e82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/macos_install_certificates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
set -eo pipefail
exec 2>&1 # redirect stderr to stdout, so error messages show up in GH Actions logs

# Based on https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development
# Based on
# https://docs.github.com/en/actions/use-cases-and-examples/deploying/installing-an-apple-certificate-on-macos-runners-for-xcode-development#add-a-step-to-your-workflow

# create variables
APPLICATION_CERT_PATH=$RUNNER_TEMP/application_cert.p12
INSTALLER_CERT_PATH=$RUNNER_TEMP/installer_cert.p12
Expand All @@ -12,9 +14,9 @@ OPENSSL=/usr/bin/openssl # could also just use "openssl" to use the conda-forge
# import certificates from secrets
echo "🏃 Retrieving our Developer certificates from GH secrets …"
test ! -z "$APPLICATION_CERT_BASE64" || (echo "❌ APPLICATION_CERT_BASE64 is empty" && exit 1)
echo -n "$APPLICATION_CERT_BASE64" | base64 --decode --output $APPLICATION_CERT_PATH
echo -n "$APPLICATION_CERT_BASE64" | base64 --decode -o $APPLICATION_CERT_PATH
test ! -z "$INSTALLER_CERT_BASE64" || (echo "❌ INSTALLER_CERT_BASE64 is empty" && exit 1)
echo -n "$INSTALLER_CERT_BASE64" | base64 --decode --output $INSTALLER_CERT_PATH
echo -n "$INSTALLER_CERT_BASE64" | base64 --decode -o $INSTALLER_CERT_PATH
echo "✅ Done retrieving our Developer certificates from GH secrets."

echo "🏃 Displaying information on our Developer certificates …"
Expand Down

0 comments on commit 3db0e82

Please sign in to comment.