Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
guness committed Jan 22, 2024
2 parents 2e002d4 + b445680 commit 64be34c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ echo_details "* upgrade_firebase_tools: $upgrade_firebase_tools"

echo

# Export Service Credentials File
if [ -n "${service_credentials_file}" ] ; then
export GOOGLE_APPLICATION_CREDENTIALS="${service_credentials_file}"
fi

if [ -z "${app_path}" ] ; then
echo_fail "App path for APK, AAB or IPA is not defined"
fi
Expand Down Expand Up @@ -161,6 +166,7 @@ if [ -z "${firebase_token}" ] ; then
echo_info "Service Credentials File is a remote url, downloading it ..."
curl $service_credentials_file --output credentials.json
service_credentials_file=$(pwd)/credentials.json
export GOOGLE_APPLICATION_CREDENTIALS="${service_credentials_file}"
echo_info "Downloaded Service Credentials File to path: ${service_credentials_file}"
else
echo_fail "Service Credentials File defined but does not exist at path: ${service_credentials_file}"
Expand Down Expand Up @@ -196,11 +202,6 @@ else
curl -sL firebase.tools | bash
fi

# Export Service Credentials File
if [ -n "${service_credentials_file}" ] ; then
export GOOGLE_APPLICATION_CREDENTIALS="${service_credentials_file}"
fi

# Deploy
echo_info "Deploying build to Firebase"

Expand Down

0 comments on commit 64be34c

Please sign in to comment.