Skip to content

Commit

Permalink
Adjusted deploy command for better firebase deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Sep 10, 2018
1 parent 032220f commit fcc27ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script:
deploy:
- provider: script
skip_cleanup: true
script: cd ./deploy/firebase && ./deploy.sh
script: cd ./deploy/firebase && ./deploy.sh --token "$FIREBASE_TOKEN" --project "$FIREBASE_PROJECT"
on:
branch: master
# Dependencies caching (for NPM, and GO)
Expand Down
11 changes: 3 additions & 8 deletions deploy/firebase/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ if [ ! -z "DISPLAY_DEPLOY_FILE_TREE" ]; then
tree -L 3;
fi

# Calling firebase deploy
if [ -z "$FIREBASE_TOKEN" ]; then
echo ">> Deploying to firebase"
firebase deploy
else
echo ">> Deploying to firebase - using FIREBASE_TOKEN"
firebase deploy --token "$FIREBASE_TOKEN"
fi
# Calling firebase deploy, with parameters passing forward
echo ">> Deploying to firebase"
firebase deploy $@

0 comments on commit fcc27ff

Please sign in to comment.