tokenary/ci_scripts/ci_post_clone.sh
2024-03-19 13:58:40 +03:00

21 lines
356 B
Bash
Executable File

#!/bin/bash
set -e
rm -rf ../Pods
PLIST_PATH="Secrets.plist"
if [ -z "${INFURA_KEY}" ]; then
echo "error: the INFURA_KEY environment variable is not set or empty"
exit 1
fi
/usr/libexec/PlistBuddy -c "Set :InfuraKey ${INFURA_KEY}" "${PLIST_PATH}"
echo "INFURA_KEY has been written to ${PLIST_PATH}"
brew install cocoapods
pod install
exit 0