Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.