Created
July 23, 2018 13:17
-
-
Save efi-mk/ae128a2b0e24acbd75d62a267a9c1ba0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
if [ -z "$1" ] | |
then | |
echo "Missing project name, please choose one..." | |
firebase list | |
exit 1 | |
else | |
if [ -z "${FIRESTORE_TOKEN}" ] | |
then | |
firebase -P ${1} deploy --only firestore:rules | |
else | |
echo "CI commit" | |
firebase -P ${1} --token ${FIRESTORE_TOKEN} deploy --only firestore:rules | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment